random axcess
Blitz3D Forums/Blitz3D Beginners Area/random axcess
| ||
I was wondering if there is a way to save something to a file with out remember where in the file it is. like a name and a score. since strings are not all the same size. is there a way I can save something then pull it out with a key work. |
| ||
Random access means that you can access any data in the file nonsequentially. You still need to know where the data is. Why not just read the whole file and scan the data for tags like 'Name' and 'Score'. Andy |
| ||
if u have made a lil program which saves a high score, you save the score and the name, the score and the name, and so on... floats has got a lenght of 4 byes, strings has aslo a lenght of 4 bytes. unless of the lenght of the string... |
| ||
You could use XML... |