Help With EOF character: URGENT

Jorge Godoy godoy at ieee.org
Sun Feb 22 19:12:25 EST 2004


On Sunday 22 February 2004 20:10, dont bother wrote:

> My problem is that I dont know what to use in place of
> EOF. I have tried using Octal "\003" and "\004" but
> that does not work. The code keeps on running. I want
> it to stop reading when the EOF has reached.
> Can someone help me out on this?

Have you tried just using "while a:"? When it can't read anything -- i.e.
EOF was found -- it will return False and the loop will end. 


Be seeing you,
-- 
Godoy.      <godoy at ieee.org>



More information about the Python-list mailing list