Page 1 of 1

Files

Posted: Mon Mar 14, 2016 12:18 pm
by AgentItay
Hey, how do I look for an empty line in a file, and how do I loop the lines of the file?
Thanks in advance :).

Re: Files

Posted: Mon Mar 14, 2016 1:43 pm
by Klaus
Shalom Itay,

read the file(s) into a variable and do what must be done:
...
## Simple text file:
put url("file" & "path/to/file.txt") into tTextVariable
repeat for each line tLine in tTextVariable
## Do something with tLine...
...
## Binary file:
put url("binfile" & "path/to/binaryfile.bin") into tBinaryVariable
## No idea how to parse binary stuff, sorry...
...

Best

Klaus

Re: Files

Posted: Tue Mar 15, 2016 11:12 am
by AgentItay
Thank you.