Hi,
I m trying to open a file in read mode , my program is below ...
#!/usr/bin/python
print "------"
file = open("C:\Lakhan\Pytonpro\file.txt", "r")
print file
file.close()
but it shows following error
------
Traceback (innermost last):
File "C:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 165, in RunScript
exec f in __main__.__dict__
File "C:\Documents and Settings\Administrator\Desktop\Python\A001.py", line 11, in ?
file = open("C:\Lakhan\Pytonpro\file.txt", "r")
IOError: (22, 'Invalid argument')
can any one help me.
Thanks in advance