File IO.
Jc
jciber16 at hotpop.com
Thu Jan 2 02:20:38 EST 2003
I'm writing a program and when it can't open a txt file it crashes. How can
I get it to report the file not being there? I set it up using the basic
command,
in_file = open(filename+".txt","r")
text = in_file.read()
in_file.close()
Thanks.
JC
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
More information about the Python-list
mailing list