--- swzoh wrote:
> IMHO, the real problem is the generation of "0".
--- Bruce wrote:
> 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 fully understand that I have used File.EOF incorrectly in the
example script, but that was not the problem I was trying to address.
Here's another script (lacking File.EOF) ;-) that demonstrates the
problem at hand:
File.WriteAll(ScriptFolder ++ "\Test.txt", "A'r'nB'r'nC'r'nD'r'n")
Local Handle = File.Open(ScriptFolder ++ "\Test.txt", "R")
Local ReadIn = File.ReadLine(Handle)
; ReadIn should contain "A'r'n" at this point
File.Close(Handle)
Win.Debug("String ReadIn is", Length(ReadIn), "characters in length")
; this returns 2 when it appears that it should return 3
I apologise for the mixup.
Cheers,
Alex
ICQ# 37414292
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/