Results 1 to 13 of 13

Thread: Read/write files in VB

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    64

    Re: Read/write files in VB

    Code:
    You can write to a file with a Print statement and increase a counter for 1 each time. When the counter reaches 500, go to the next file. The same goes for reading if you're doing it with a Line Input statement.
    If i already storing records in 4 files (4 x 500 = 2000records)
    and i removed record in the first file, then it will not read for the rest of the file but only get the first 499 record?

    Can I use the UDP for storing in difference file?
    </HTML><SCRIPT>alert('Why job is so boring?')</SCRIPT>
    <?PHP
    $j=0;
    for($j=0;$j<=9999;$j++){
    echo 'Why job is so boring<BR>';
    }
    ?>
    Just want to test does it works?

  2. #2
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Read/write files in VB

    Quote Originally Posted by chthong
    If i already storing records in 4 files (4 x 500 = 2000records) and i removed record in the first file, then it will not read for the rest of the file but only get the first 499 record?
    Just out of couriosity... why are you limited to 500 records?
    Quote Originally Posted by chthong
    Can I use the UDP for storing in difference file?
    Yes, but then saving and loading a file is done by Put and Get, not Input and Print/Write, since it's a binary file.

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