Results 1 to 5 of 5

Thread: Weird Numberz that are there for who knowz why

  1. #1

    Thread Starter
    Addicted Member DarkMoose's Avatar
    Join Date
    Jul 2000
    Location
    in a box
    Posts
    185
    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.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  3. #3

    Thread Starter
    Addicted Member DarkMoose's Avatar
    Join Date
    Jul 2000
    Location
    in a box
    Posts
    185
    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.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  5. #5

    Thread Starter
    Addicted Member DarkMoose's Avatar
    Join Date
    Jul 2000
    Location
    in a box
    Posts
    185
    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
  •  



Click Here to Expand Forum to Full Width