I want to name a file containing special characters, but I get an error when I try to do so
with open('My filename: one | two.txt', 'a') as f:
f.write('something')
and get this error :
OSError: [Errno 22] Invalid argument: 'My filename: one | two.txt'
How can I name a file containing special characters?