[Tutor] read_help

Karshi karshi.hasanov@utoronto.ca
Sun, 18 Nov 2001 17:45:38 -0500


Hi all,

 I have a question about  the "read()" method.
For example, if I wanna read the file which has  size=200bytes. I want to 
read only 100bytes by skipping 2 bytes. How do I do it in Python?

---In Matlab it will look like this:
---file=fopen(somefile, 'rb')
---read=fread(file, 100, 2)
Thanks