On Sun, Sep 18, 2005 at 02:15:00PM +1000, Maurice Ling wrote:
> Sorry but what are SEEK_END and SEEK_SET?
Oops, that's what I get for snipping a part of a larger program.
SEEK_SET = 0
SEEK_END = 2
Jeff
pgpC1OTox5VvO.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/pyt
Maurice Ling <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED] wrote:
>
>>I have written a program to do something similar. My strategy is:
>> * use os.read() to read 512 bytes at a time
>> * when os.read fails, seek to the next multiple of 512 bytes
>> and write '
[EMAIL PROTECTED] wrote:
I have written a program to do something similar. My strategy is:
* use os.read() to read 512 bytes at a time
* when os.read fails, seek to the next multiple of 512 bytes
and write '\0' * 512 to the output
I notice this code doesn't deal properly with short reads, but
I have written a program to do something similar. My strategy is:
* use os.read() to read 512 bytes at a time
* when os.read fails, seek to the next multiple of 512 bytes
and write '\0' * 512 to the output
I notice this code doesn't deal properly with short reads, but in my experience
they ne
Hi,
I'm trying to read some files (video files) that seems to have some
errors in it. Basically, I cannot copy it out of discs as that gives me
an error message but I can still play the file using a media player like
VLC or QuickTime. I understand that copying a file will also invoke
checking