problem's with strings
Andreas Ulbrich
ulbi at ivs.tu-berlin.de
Mon Nov 4 10:55:19 EST 2002
More information about the Python-list mailing list
Mon Nov 4 10:55:19 EST 2002
- Previous message (by thread): problem's with strings
- Next message (by thread): problem's with strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Richard Mertens wrote:
> first problem:
>
> I'd like to convert a text-file von unix to windows and vice versa
>
> Do you know a solution for this
>
>
> When the python script is reading the text-file i have always the Nextline -
> Character on the end. How do you I remove it?
from windows to unix:
somestring.replace('\r', '')
vice versa:
somestring.replace('\n', '\r\n')
- Previous message (by thread): problem's with strings
- Next message (by thread): problem's with strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list