Re: Writing binary files in windows

2011-02-11 Thread Nick Raptis
On 02/12/2011 05:20 AM, Abhishek Gulyani wrote: When I write binary files in windows: file = open(r'D:\Data.bin','wb') file.write('Random text') file.close() and then open the file it just shows up as normal text. There is nothing binary about it. Why is that? Sorry if this is too much of a

Re: Writing binary files in windows

2011-02-11 Thread Corey Richardson
On 02/11/2011 10:20 PM, Abhishek Gulyani wrote: > When I write binary files in windows: > > file = open(r'D:\Data.bin','wb') > file.write('Random text') > file.close() > > and then open the file it just shows up as normal text. There is nothing > binary about it. Why is that? > > Sorry if this

Writing binary files in windows

2011-02-11 Thread Abhishek Gulyani
When I write binary files in windows: file = open(r'D:\Data.bin','wb') file.write('Random text') file.close() and then open the file it just shows up as normal text. There is nothing binary about it. Why is that? Sorry if this is too much of a noobie question. I tried googling around but couldn