Order of the Butterfly
Posts: 348 from 2004/8/31
From: Québec - Canada
About not closed files issue:
Since few years I see more and more developpers using an implementation dependent behaviour of 'open' (or fopen): on linux if you try to open in write mode a file, then try again to open it in the same process without closing it before, it works. But not with MorphOS libnix implementation...
This behavious is more and more used everywhere and cause me to loose all my hair!
Hopefully, in python 2.6 and more, they have introduced the 'with' expression, the close automatically the file when you exit of the 'with' expression block. (except if the silly coder try to open again the file inside it!)
[ Edited by Yomgui on 2010/11/15 23:19 ]
And now... next project!