write eof without closing

Philippe Martin pmartin at snakecard.com
Sat Aug 19 12:39:57 EDT 2006


cage wrote:

> hello
> 
> can i write a eof to a file descriptor without closing it?
> like:
> fd.write(EOF)
> or something
> 
> grts,
> ruben

No but there is an EOF to the file anyway, even if it is open.

I recall under MS-DOS, you could create a file of size N without writing to
it (some INT21 or 9 ? call to modify the FAT) ... not really possible
anymore.

Philippe





More information about the Python-list mailing list