> Local Handle = File.Open(ScriptFolder ++ "\Test1.txt", "R")
> For(Not(File.EOF(Handle)))
> Local Output = Output ++ File.ReadLine(Handle)
> EndFor
>e> Test2.txt contains the number 0 for some unknown reason.
>
> Is there any reason why this is happening?
file.eof checks whether _previous_ read, NOT _next_ read, will
produce eof, so you are reading your last readline can process a
line when there is none there. See eg in file.txt for right way to
use file.eof.
>
> Regards,
> Alex
>
> ICQ# 37414292
**** EDIT YOUR POSTINGS !!!! ****
Please remove as much as possible from original messages before replying to them.
________________________________________________
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/