Re: puzzle about file Object.readlines()

2011-03-22 Thread Gabriel Genellina
On 19 mar, 16:05, Dave Angel wrote: > On 01/-10/-28163 02:59 PM, MRAB wrote: > > On 19/03/2011 13:15, 林桦 wrote: > >> i use python 2.5. os is window 7. > >> the puzzle is :python don't read the leave text when meet character: > >> chr(26) > >> the code is: > >> /fileObject=open('d:\\temp\\1.txt','w

Re: puzzle about file Object.readlines()

2011-03-19 Thread Dave Angel
On 01/-10/-28163 02:59 PM, MRAB wrote: On 19/03/2011 13:15, 林桦 wrote: i use python 2.5. os is window 7. the puzzle is :python don't read the leave text when meet character: chr(26) the code is: /fileObject=open('d:\\temp\\1.txt','w') fileObject.write('22\r\n') fileObject.write(chr(26

Re: puzzle about file Object.readlines()

2011-03-19 Thread MRAB
On 19/03/2011 13:15, 林桦 wrote: > i use python 2.5. os is window 7. > the puzzle is :python don't read the leave text when meet character: > chr(26) > the code is: > /fileObject=open('d:\\temp\\1.txt','w') > fileObject.write('22\r\n') > fileObject.write(chr(26)+'\r\n') > fileObject.writ