--- In [EMAIL PROTECTED], Alex Peters <[EMAIL PROTECTED]> wrote:
> 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?
It's me again. :-) I'm afraid that I could be too hasty again.
But are you sure that Test1.txt does not contain additional line
after the text you wrote down?
Why I'm asking this is that because of "not file.eof(handle)" in For()
the "end line" of the handle will not be processed to "Output".
**** 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/