44700Re: [libertybasic] Re: EOF Indicator/GOSUB
- Mar 1, 2012Stepan, my apologies. Everything you say is right*. If I had realized it was your post to which I was replying, I might have been more careful. I am guilty of acting in haste. My bad. And now I have to go and eat some ashes. :(
...from the world according to GaRPMorE
From: Stefan Pendl <pendl2megabit@...>
Sent: Thursday, March 1, 2012 5:42 PM
Subject: Re: [libertybasic] Re: EOF Indicator/GOSUB
Am 01.03.2012 23:13, schrieb Gary Passmore:
> eof(#f) returns 0 (null chr) if the file has NOT been exhausted.I have read the help many times and I use that construct successfully in
> Your "not(eof(#file))" will have the opposite effect.
> Read the Help File, under "EOF( #h )."
my existing projects with the correct result.
Did you try it?
The line "While Not(Eof(#file))" can be translated into human language
as "While not at the end-of-file (do loop)".
LB 4.04 Pro ... http://www.libertybasic.com/assist.html
LB 4.04 ....... http://www.libertybasic.com/lb404setup.exe
LB Community Wiki .............. http://basic.wikispaces.com/
LB Programmer's Encyclopedia ... http://lbpe.wikispaces.com/
LB Bug Tracker ................. http://libertybasicbugs.wikispaces.com/
Books at http://www.lulu.com/ and http://www.amazon.com/
Alyce Watson ... APIs for Liberty BASIC
Carl Gundel .... Beginning Programming with Liberty BASIC
Windows 7 Home Premium 64-bit SP1
AMD Turion X2 RM-70 2GHz, 4GB RAM
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>