[Tutor] Please Help
David Lowry-Duda
david at lowryduda.com
Sat Sep 7 14:48:58 EDT 2019
On Sat, Sep 07, 2019 at 02:22:44PM +0200, Sean Frazier wrote:
> I am running a problem in 'Think Python' and was having no issues with:
> fin = open('words.txt')
> Then when I was working with the reference file, running a function,
> my IDLE crashed and is no longer able to locate files using [var =
> open('file.txt')]
>
> I have tried opening as 'r' and 'w', with no luck.
>
> Also, sometimes I do not get an error, but when I go to read the list,
> it is empty ''.
I wonder whether or not you have deleted or emptied the file `file.txt`.
Have you tried opening it in a text editor to see if it still has
content?
David Lowry-Duda
More information about the Tutor
mailing list