so im trying to update my game, specifically, the loading and creation of maps.
Im currently using a INI system for loading maps, but ive come to realize that having 30 maps in the same directory as the game gets very messy. And ive never, EVER, had success with the file_text_write functions. Ive tried, but i cant get it right.
What i want to happen, is having a small couple lines of code, that will...
1 - add a string at the end of the file
2 - add a line
3 - be able to repeat this process without overwriting ANYTHING
using this method, i can have my maps creation data all piled up and looking good.
You need codes for text files? If so:
1.openfile = file_text_open_append('Maps\The map to load') file_text_write_string(openfile,'THE STRING GOES HERE!') file_text_close(openfile)
For the above code, you need to have a folder Maps in the directory of EXE!
2. Do you mean add an empty line?file_text_writeln(openfile)
3. You can loops for that. If you open file using fil_text_open_append, then nothing will be overwritten
you are amazing. *gives cookie*
Btw, will opening the file with file_text_open_append() then writing a string, will the stirng be written at the end or the beginning of the file?