1

I am trying to open a file named PRN.txt, using

open('PRN.txt', 'w')

It always fails with

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'PRN.txt'

I can call the file _PRN, PRO etc, it it will open fine. But PRN with any extension, any case and to any path does not work!

Python version 3.6.2

This is ridiculous. Please help!

Tiny
  • 197
  • 7

0 Answers0