Craig Cesareo wrote:
Be sure your current working directory is your desktop.
import os
print os.getcwd()
Be careful about changing the working directory from *within* Python. While
you can do so, and in the hands of somebody who knows what they're doing it is
perfectly fine, there are some p
On 24/06/12 19:17, pro...@yorku.ca wrote:
>>> fo = open('mort.txt') THIS IS WHAT I TYPEDAND THE MESSAGE
FOLLOWS
Traceback (most recent call last):
File "", line 1, in
fo = open('mort.txt')
IOError: [Errno 2] No such file or directory: 'mort.txt'
The file mort.txt certainly
Be sure your current working directory is your desktop.
import os
print os.getcwd()
Otherwise specify the full path to the text file. r'c:\users\mort.txt'
--
Craig Cesareo - iPhone
Pipeline Technical Director
http://www.legend3d.com/
http://www.craigcesareo.com/
609.994.6370
On Jun 24, 2012
I'm am just new to Python, and am having trouble getting started. I
am trying to open files of data that I want to work on, and keep on
getting a message that no such file exist. For example here is a
copy of what I've typed and the error message
>>> fo = open('mort.txt') THIS IS