Re: [BangPypers] python program to fetch input data in complete bit format

2010-07-07 Thread Gopalakrishnan Subramani
If I remember, Python 3.0 gas byte as a data type where you can play with bytes. Otherwise you can open file with read and binary mode rf = open("README.txt", "rb") bytes = f.read(n) # n bytes or simply read() but it returns string wf = open("README.txt", "wb") wf.write(bytes) #technically str

Re: [BangPypers] python program to fetch input data in complete bit format

2010-07-07 Thread Rahul R
On Thu, Jul 8, 2010 at 1:24 AM, Noufal Ibrahim wrote: > Rahul R writes: > > > i was wondering if there is a way to fetch the raw data of any file i > > input for example if i accept a text file or a video file (particualr > > large video files ). i could fetch the the equivalent bits and store >

Re: [BangPypers] python program to fetch input data in complete bit format

2010-07-07 Thread Noufal Ibrahim
Rahul R writes: > i was wondering if there is a way to fetch the raw data of any file i > input for example if i accept a text file or a video file (particualr > large video files ). i could fetch the the equivalent bits and store > it in another file [...] I'm not sure what you want to do. Wha