Hi guys,
Please consider the following explanation of File.ReadString, as taken
from File.txt:
> readline
> reads and returns next line from file including any trailing 'r or
> 'n
Therefore, this script should precisely copy Test1.txt to Test2.txt:
File.WriteAll(ScriptFolder ++ "\Test1.txt", "This'r'nis'r'na'r'ntest'r'n")
Local Handle = File.Open(ScriptFolder ++ "\Test1.txt", "R")
For(Not(File.EOF(Handle)))
Local Output = Output ++ File.ReadLine(Handle)
EndFor
File.Close(Handle)
File.WriteAll(ScriptFolder ++ "\Test2.txt", Output)
However, Test2.txt differs from Test1.txt in that they contain:
Test1.txt: This'r'nis'r'na'r'ntest'r'n
Test2.txt: This'nis'na'ntest'n0
Test2.txt contains the number 0 for some unknown reason.
Is there any reason why this is happening?
Regards,
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/