|
-
Dec 10th, 2000, 12:44 PM
#1
Thread Starter
Addicted Member
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.
To understand recursion, one must first understand the concept of recursion.
-
Dec 10th, 2000, 02:56 PM
#2
transcendental analytic
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.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Dec 10th, 2000, 03:08 PM
#3
Thread Starter
Addicted Member
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?
To understand recursion, one must first understand the concept of recursion.
-
Dec 10th, 2000, 03:22 PM
#4
transcendental analytic
yep, if you know their position
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Dec 10th, 2000, 04:07 PM
#5
Thread Starter
Addicted Member
LOL, thanx. Well, that's pretty convenient right now cuz i have a whole lot of info to store fer my AI codez.
To understand recursion, one must first understand the concept of recursion.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|