-
I have a question about binary acces files. When you Get or Put something from/to it, you use something like this
Code:
Put #27, 1, Variable
Well, my question is what is the number in the middle for? I've just been ignoring it for awhile, but I would like to know.
-
IT is the position where you write in the file. By omiting it you just write to the next position, as if you were writing on the form using print "blabla";
In other words the position moves automatically forward when you put, get, write, print, input, line input or input$ with your file. So you usually don't need to use it except when you need to jump to a specific position. It can also be done with seek statement, which just jumps to the position without reading or writing anything.
-
oh, i c. But i only saved one array on my file. doez that mean you can save like... 597589745 arrays or however many you need and then you can just jump to whichever you want?
-
yep, if you know their position ;)
-
LOL, thanx. Well, that's pretty convenient right now cuz i have a whole lot of info to store fer my AI codez.