random axcess

Blitz3D Forums/Blitz3D Beginners Area/random axcess

malicnite(Posted 2006) [#1]
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.


Andy(Posted 2006) [#2]
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


bytecode77(Posted 2006) [#3]
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...


Jams(Posted 2006) [#4]
You could use XML...