Saving and Loading?
Blitz3D Forums/Blitz3D Beginners Area/Saving and Loading?
| ||
If I want to create file to read from Notepad and what commands should I look for saving(when saving the informations) and loadings(load the inoformation? |
| ||
Do you actually want to read from notepad or read a notepad text file? |
| ||
read a notepad text file? YES this one :) |
| ||
You could use something like this: INI-format data files (example of saving a scene) There are some more sophisticated ones in the archives too (XML, JSON etc.) - in fact I'm not sure but there might even be an XML reader in the Blitz3D samples. INI is nice for simple structures though. |
| ||
I would like somethings simple for me to understand on saving and loading |
| ||
Mine autosaves to a txt file every loop. Could you use something like that, or do you want savepoints? For that you'd have to get help from someone else, but I'm sure there's plenty of people here who could help you. |
| ||
Here are the commands; filevariable=Openfile("subfolder/textfilename.txt") Writestring(filevariable, "this can be string or variable") ;you can add as much as you like Closefile(filevariable) I am writing get this from my phone so I can't tell you if this is code is completely accurate, so go into the blitz docs and go 2d category and file/stream then read through there. Ask if you have any more questions. |