file .seek() under MS-Windows

Frank Schaefer fschaef at ces.clemson.edu
Wed Jun 19 17:18:44 EDT 2002


Hi,

The following code:


fh = open("myfile.pot", "r")


...
fh.seek(-1,1)
...

produces an error:
[IOError 22] Invalid Argument

under MS Windows (XP). It works fine under Unix, though (for years).

I appriciate any help.

Thanks,

Frank.



More information about the Python-list mailing list