File I/O, Arrays, and Databases in Revolution

Sarah Reichelt sarahr at genesearch.com.au
Mon Apr 1 22:39:03 EST 2002


>> fields, scientific notation fields, etc.  In looking at the Revolution
>> documentation, it appears that I have to somehow read or write each 
>> line
>> as a string, then somehow parse each field from this string.  So how do
>> you do this efficiently in Revolution?   Please note that the files
>> created by the FORTRAN programs are fairly large.
>>
>
> open file filename for read
> read from file until EOF
> put it into DaFile
> close file Filename
>

Don't forget the URL command which is MUCH simpler than all this file 
stuff:

put URL ("file:" & theFileName) into DaFile

(Note: fileName is a reserved word and shouldn't be used for a variable 
name - if you colorize your scripts, you'll see and reserved words go 
red.)

Cheers,
Sarah





More information about the use-livecode mailing list