[IronPython] Seek fails

Benoist JAMIN benoist.jamin at free.fr
Sat Jul 22 22:51:13 CEST 2006


I need to get file size. Here's my Python code:

fd = open("c:\\parser.py", 'r');

fd.seek(0, 2);

size =fd.tell();

 

Python returns the correct file size but IronPython returns 0. I had a look
at the source code and I would say a bug exists.

Does anyone confirm?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060722/31857f8d/attachment.html>


More information about the Ironpython-users mailing list