Re: [IronPython] Reading Text files with open

2007-06-12 Thread Fuzzyman
On Behalf Of Michael Foord >Sent: Monday, June 11, 2007 4:04 PM >To: Discussion of IronPython >Subject: [IronPython] Reading Text files with open > >Hello all, > >If I create a file with the following code: > >open(r'c:\temp\test.txt', 'w').wri

Re: [IronPython] Reading Text files with open

2007-06-11 Thread John Messerly
ECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Monday, June 11, 2007 4:04 PM To: Discussion of IronPython Subject: [IronPython] Reading Text files with open Hello all, If I create a file with the following code: open(r'c:\temp\test.txt', 'w').write(

[IronPython] Reading Text files with open

2007-06-11 Thread Michael Foord
Hello all, If I create a file with the following code: open(r'c:\temp\test.txt', 'w').write('\xa33') And then read it in using the Python 'open', I get different results with Python and IronPython: CPython 2.4.4: >>> data = open(r'c:\temp\test.txt').read() >>> data '\xa33' >>> ord(data[0])