Do you mean like from around page 79 of the manual?
code:
READLINE
Action
Reads a line from a file.
Syntax
READLINE (file number)
Parameter
File number
A numeric expression indicating the file number of the file to open. Possible values range from 1 to 10.
Remarks
READLINE reads a string ending in a carriage return. If successful, the function
returns the string without a carriage return. If it encounters an error, @ERROR returns an error code.
Returns
-4 File not open for reading
-3 File number not open
-2 Invalid file number specified
-1 End of file
0 Line read successfully
Example
IF Open(3, @LDRIVE + "\CONFIG\SETTINGS.INI") = 0
$x = ReadLine(3)
WHILE @ERROR = 0
? "Line read: [" + $x + "]"
$x = ReadLine(3)
LOOP
Close (3)
ELSE
BEEP
? "Config file not opened, error code: [" + @ERROR + "]"
ENDIF
Or are you saying that you've read this and need further help understanding it?
There is also READPROFILESTRING and WRITEPROFILESTRING and WRITELINE
Please read this first and the FAQ section on this board. If on the other hand you HAVE read this and still need assistance, then please feel free to elaborate on what exactly it is you want to do. We will be glad to help you understand it, but it makes it easier if you have at least read it and know about it.
[ 02 July 2002, 08:57: Message edited by: NTDOC ]