phat code Never underestimate the bandwidth of a station wagon full of tapes.
Main

Projects

Downloads

Articles

Links

Forum

 

View Message

Back to Messages
Plasma Mon Feb 5 2018 at 9:23 pm
how big is "relatively short"?
 
 
You may find this article useful regarding string handling:

https://www.pcjs.org/pubs/pc/reference/microsoft/kb/Q29010/

As far as partially loading a text file, there are a couple ways to do it. The easiest is to always SEEK to the beginning of the file, then use LINE INPUT multiple times to read the number of lines you want to skip into a temp string. If you want to optimize things a bit, you can read the whole file once and keep a record of the SEEK position after each LINE INPUT. Store the file positions in an array. Then you can easily use SEEK to go directly to the line you want.
 
 
 
 

Reply to this Message

Name
Subject
Message

No HTML is allowed, except for <code> <b> <i> <u> in the message only.
All URLs and email addresses will automatically be converted to hyperlinks.