How to extract specific columns/line items from a CSV file?
Richard Gaskin
ambassador at fourthworld.com
Tue Sep 20 17:42:54 EDT 2016
Keith Clarke wrote:
> It’s interesting that the url container can be addressed directly,
> instead of loading the file
get url ("file:"& tFile)
...does the same as:
open file tFile for read
read from file until EOF
close file tFile
It's just more convenient than using the three-line method (which can be
very useful if you need for fine-grained control over the read, such as
reading in chunks or from a particular offset).
Unless your files are much bigger than 100 MBs you should find loading
them into memory well worth the effort for the time saved parsing them thee.
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list