Hi Matthew,

> Hi List,
> 
> I have a quick question if anyone has time to respond.
> 
> I would like to know how to search a file for a line beginning with some
> id number, and then to extract that line and read each item into a
> separate variable name.
> 
> Many thanks
> 

here's a quick and (hopefully not too) dirty one:

##supposed your file is a text-file...

put url"file:" & "the_path/to_your/file.txt" into whatsoever
get lineoffset("your_id_number", whatsoever)
set the itemdel to xxx               ##  replace xxx with your itemdelimiter
put line it of whatsoever into the_line
put item 1 of the_line into etc...


...not tested, but should do the job.

If in doubt, consult your dealer or this list or me off-list ;-)

Regards

Klaus Major <[EMAIL PROTECTED]>
MetaScape GmbH


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to