Results 1 to 5 of 5

Thread: [RESOLVED]load the 1st,2nd,3rd 100mb into an array

Threaded View

  1. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: load the 1st,2nd,3rd 100mb into an array

    Yes. The second argument in the Get function is the starting read position. If you open the file in Binary mode it indicates the starting byte (random mode it indicates the record #). So

    Get #tfilenum, 1000000 , arrdata

    Another option is the Seek function which moves the file pointer to a byte position. Get will then Read from that point on.

    Seek #tfilenum, 1000000
    Get #tfilenum, , arrdata

    Use something like the following to get the file pointers current position.

    lngCurPos = Seek(#tFilenum)
    Last edited by brucevde; Sep 21st, 2007 at 02:16 PM.

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