I have the following script on Linux that just reads a file and outputs it and it works with no issues. When I take the same script and try to run it on windows I keep getting the following error, not sure why I keep getting this error though
test script
#!/usr/bin/python
f = open("names.txt", "r+")
next = f.read().splitlines()
for i in next:
print i
error
IOError: [Errno 22] invalid mode ('r+') or filename: