i’m using pyton 2.7. I have written a script , when it is executed, it will call and run some other file with the name abc.py. but i’m getting error
IOError: [Errno 22] invalid mode ('r') or filename: 'F:\x07bc.c'
it is working fine if i change the file name.
it shows error only if i use letters from a to f as the first letter of file name
Please help.
Thank you
Try this:
i.e. add
rbefore quotes.UPDATE Sorry, I misinterpreted the code (although my solution is correct). @DavidHeffernan is right, the
\ais read as the ASCII bell.