Hi
I tried to have python call an external 'Word'-file,
and the read the whole text into a single string with
the following code:
[CODE]
source = raw_input('file path')

File = open('source', 'r')
S = input.read()

print S
[/CODE]

But when I try to run it, it raises the following
error:

File = open('sorce', 'r')
IOError: [Errno 2] No such file or directory: 'sorce'

Is it something I am mimssing, or does python require
a special form of path?

Thanks in advance
Fred\\


        

        
                
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: 
http://mail.yahoo.de
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to