*sigh* its 3:00am.
Well, i have just spent the last 5 hours trying to figure out how to fake MYSQL calls from GML. What i ended up doing was creating a set of functions that executes a query on a CSV database and returns it to a datastack, which can be further manipulated.Well, what the hell took so long? Figuring out how to insert lines, and modify lines. Inserting at the end of a file is easy: simply use 'file_text_open_append'. But what if you dont want to start enditing from the last line? So, what i had to do was first create a temporary file. Then, line by line, copy into the new file, unless the line matches the insertion/editing query. If not, then copy paste. if so, then paste the data from the supplied datastack.It was a pain in the ass to figure it out… and i might be releasing this set of 10 or so scripts as an example very soon.allright, bedtime -_-zzz
Couldn't you just number off rows and use file_readln to get the text of that row, and so on?
fake MySQL calls?
I'm trying to make a parser for my own language in GML.Ooops, I shouldn't talk anymore about thisMelee, i wish you could. Except when you open an existing file for writing, it gets emptied. So i have to open it for reading, and copy it over to one opened for writing. Trust me, i have tried your method before and it didnt work.