Extracting a subset of lines from a large file

LiangTyan Fui mlist at afteroffice.com
Tue Jul 1 20:24:01 EDT 2003


On 7/2/03 4:43 AM, "Gregory Lypny" <gregory.lypny at videotron.ca> wrote:

> Hello everyone,
> 
> I want to take a chunk of 1000 lines at a time out of a text file and
> display it in a field.  Some of the text files are big, 200 MB and up.
> 
> Is one of the following approaches preferred?
> 
> [1]    put line 1 to 1000 of url ("file:" & filePath) into field "X"

This is equivalence to:
  put url ("file:" & filePath) into tmp # you need the RAM to store this.
  put line 1 to 1000 of tmp into field "X"
  
> [2]    read from file filePath from line 1 for 1000 lines
> put it into field "X"

Personally I'll pick [2] to deal with large files.

-- 
 
> 
> Regards,
> 
> Gregory
> 
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
> 





More information about the metacard mailing list