--- In [EMAIL PROTECTED], "swzoh" <[EMAIL PROTECTED]> wrote:
> --- "brucexs" <[EMAIL PROTECTED]> wrote:
> > > 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.
> 
> Hi Bruce. Though I'm not Alex I'm sure he's well aware of this.
> 
> IMHO, the real problem is the generation of "0".


The way to avoid the "generation of 0" is to use file.eof properly.  
The bug is in the script, not PowerPro, as far as I can see.


> 
> I thought that this might be related with the problem,
> ""==0 and/or " "==0 that you mentioned previously.

This will be fixed in the next beta but is it not the same as the 
above problem.






------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
---------------------------------------------------------------------~->

****  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/
 

Reply via email to