Let>k=1
Label>start
ReadLn>C:\notes.txt,k,line
If>line=##EOF##,finish
Message>line
Let>k=k+1
Goto>start
Label>finish
I tried this script (which is copied almost exactly letter for letter from the help) with 7.1 and 7.2 beta and the only output I can get is 'line', not the actual data in the file... Anyone else having this problem? It also seems to be stuck in a never ending loop, it never hits the ##EOF##...
I even tried this:
ReadLn>C:\notes.txt,1,line
Message>line
which just shows a message with the word 'line', not the actual data thats on line 1 of the C:\notes.txt file...
ReadLn not working...
Moderators: JRL, Dorian (MJT support)
Try: %line% ... "Message>%line%" and "If>%line%=##EOF##..." (etc)
Edit: I copy/pasted your script exactly in to v7.1.18, and it worked perfectly. The only thing I can think of, is that you have an extra space at the end of the line somewhere. In the script editor, select "Edit -> Show all chars" from the drop down menus, and see if any spaces accidently made it to the end of the lines.
Maybe you have: "Readln>c:\notes.txt,k,line " <-- with space?
Edit: I copy/pasted your script exactly in to v7.1.18, and it worked perfectly. The only thing I can think of, is that you have an extra space at the end of the line somewhere. In the script editor, select "Edit -> Show all chars" from the drop down menus, and see if any spaces accidently made it to the end of the lines.
Maybe you have: "Readln>c:\notes.txt,k,line " <-- with space?