Hi Chris,

Surely if you've got one line of strings (i.e. there is only one CR or LF/CR
pair) then the behaviour is as expected?

If you only have one line of strings, how are they delimited?

If they're comma separated, you could look at the CommaText property of a
TStringList IIRC, which would then give you each of your separate strings as
an entry in the stringlist.

If you still want separate variables, then I think you're going to have to
parse the line yourself, e.g. reading it character by character, and
choosing when to break it yourself.

Otherwise, I don't quite understand what you're trying to achieve.

HTH,

Conor

-----Original Message-----
From: Chris Veale [mailto:[EMAIL PROTECTED]

I want to read in a line of strings into seperate variables and Im trying to
use readln(file,var1,var2,var3);

but the data for the line gets put into var1 and then the rest of the vars
are empty.

I know you can do this I just cant seem to get it.

Can anyone help please?
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to