oops, forgot the "&" before the variable... knew it looked wierd...
that about answered my question... thanks...
parsing .ini files? possibly... i''m just trying to figure out how a load / save map feature will work on a simple little tile engine that i''m working on... i was going to put everything in one big ''configuration''(text) file (by everything, i mean the height, width, scripts to load, positions of things,etc...), inside a datafile with all the other stuff the map needs... i considered using a .ini file, but dont yet know how to use them... i''m assuming differently than a normal text file?
i was hoping it would search the file every time, because i''m making a scripting thing that loads and runs scripts from a file... i dont even remember why i wanted it to search the file... now that i think about it, all i really need it to do at the moment is read it in, one line at a time, and interpret the stuff... but it still would be handy to know... is there a way to search the file? i mean is there an existing function, if not, i can probably figure out how to on my own, but if i dont have to go to the trouble
... i wouldn''t need to search if it was a map file, because it would always be the same format... but for scripting...
hmm... searching a string variable... hmm... i could read in the file one line at a time (using that command that reads a file in one line at a time into a string) and search the string to find out what command to run... yeah...
anyway, i guess i was just wondering how it worked...