I can successfully open a file for reading ('r') or writing ('w') but I'm trying to open for updating ('a') and I can't get it to work.
I set a variable, outfile to 'x:/projmn/time.txt'. This file (and path) exists.
I then do:
and I get the error. I've also tried 'a+', and 'r+' with the same problem. I'm running on Windows XP with Python 2.4. Is there something I'm doing wrong?
_________________
Bob Rashkin
I set a variable, outfile to 'x:/projmn/time.txt'. This file (and path) exists.
I then do:
Code:
try: f = open(outfile,'a')
except:
a=raw_input("could not open "+outfile+" (press Enter).")
exit()
and I get the error. I've also tried 'a+', and 'r+' with the same problem. I'm running on Windows XP with Python 2.4. Is there something I'm doing wrong?
_________________
Bob Rashkin