Hi everyone,
I am trying to write a script that can read the three words that the text file contain. The contents of the text file looks like :
one#
two#
three#

With the following script I can get the three strings from the text file:
 Code:
Break On
IF Open(3,"filepath")=0
  $line = ReadLine(3)
  WHILE @ERROR = 0
    ? $line
    $line = ReadLine(3)
  LOOP
  Close (3)
EndIf
Sleep 5


The output of this script is:
one#
two#
three#

What I want is to read only the 2nd line of the file. That is the output will be only -
Two#

rather than having

one#
two#
three#

Please help.


Edited by Allen (2009-08-15 06:43 AM)
Edit Reason: added code tags