Getting text out of a field
Posted: Sat Feb 09, 2008 3:13 pm
I've got a text file that I've got the first line out of by using this:
How do I now get the rest of the file into another variable? I thought it might be as simple as:
But it's not.
Code: Select all
put fld "TemplatePath" into sFile
open file sFile for read
read from file sFile at 1 until EOF
put it into fld "fldContent"
put the first line of fld "fldContent" into wTitle
How do I now get the rest of the file into another variable? I thought it might be as simple as:
Code: Select all
put line 2 to eof into fld "fldRest"