End of file detection with ReadLn? Log Out | Topics | Search
Moderators | Edit Profile

X-Ways Support Forum » Advanced Features » End of file detection with ReadLn? « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Rick Samuelson
Username: prsgroup

Registered: N/A
Posted on Friday, Dec 19, 2008 - 7:36:   

Is there a way to detect the end of file when using ReadLn in a loop?

Thanks

Rick
Top of pagePrevious messageNext messageBottom of page Link to this message

Stefan Fleischmann
Username: admin

Registered: 1-2001
Posted on Friday, Dec 19, 2008 - 10:27:   

You would compare the results of CurrentPos and GetSize for that.
Top of pagePrevious messageNext messageBottom of page Link to this message

Rick Samuelson
Username: prsgroup

Registered: N/A
Posted on Wednesday, Dec 24, 2008 - 0:21:   

Thanks. That worked!

Add Your Message Here
Post:
Username: Posting Information:
Only registered users may post messages here, i.e. you need to have an account.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:
Forum operated by X-Ways Software Technology AG.