Hi Alex.
--- In [EMAIL PROTECTED], Alex Peters <[EMAIL PROTECTED]> wrote:
> 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

Ah, the old CR/LF problems. Lovely...:-)
Other programs have their problems with that as well. Due to that I 
stopped using DOS-format for text files and work in UNIX-format 
wherever possible. Saves you some trouble, especially when doing 
internet stuff. Same goes for using "/" instead of "\" for file 
paths...
Besides, you're right. Readline forgets the 'r.

> Test2.txt contains the number 0 for some unknown reason.

That's what readline (wrongly) returns for an empty line. Having 'r'n 
at the end of the file is like putting a return at the end. Should 
be "" I guess...

Mockey




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