Saving and Loading?

Blitz3D Forums/Blitz3D Beginners Area/Saving and Loading?

Hotshot2005(Posted 2014) [#1]
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?


Amanda Dearheart(Posted 2014) [#2]
Do you actually want to read from notepad or read a notepad text file?


Hotshot2005(Posted 2014) [#3]
read a notepad text file?

YES this one :)


Yasha(Posted 2014) [#4]
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.


Hotshot2005(Posted 2014) [#5]
I would like somethings simple for me to understand on saving and loading


fox95871(Posted 2014) [#6]
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.


AngelOnFira(Posted 2014) [#7]
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.