python 2.5 - f=open('a_file.txt','w') gives [Errno 2]
Rick Dooling
rpdooling at gmail.com
Mon Dec 3 09:53:23 EST 2007
On Dec 3, 7:47 am, dirkheld <dirkh... at gmail.com> wrote:
> IOError: [Errno 2] No such file or directory: 'a_file.txt'
I sometimes see that error on Linux when trying to run a script with
DOS line endings. Is it an imported file? I don't know Macs, but start
by making sure both your script and the file have Mac line endings?
rick
More information about the Python-list
mailing list