Link to home
Start Free TrialLog in
Avatar of dmoring
dmoring

asked on

Ending ReadLine at EOF

Using the Object FSO I want to read each line to a variable. Some sample for clarity:

Set objTextStream = objFSO.OpenTextFile(FileToOpen, 1)
'Want to have line below read until EOF
txtMsg = objTextStream.ReadLine

What is the syntax for EOF so it does not error out?
Avatar of tejaspurani
tejaspurani

objTextStream.AtendOfStream  


T.P.
ASKER CERTIFIED SOLUTION
Avatar of tejaspurani
tejaspurani

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dmoring

ASKER

Worked great!!! Thank you!