Hoping somebody can help me with the following. The function works just fine:
def fileOpen(filename, accessmode):
file = open(filename, accessmode)
for line in file:
print(line)
return
The filename
is "open.txt"
Instead of opening notepad the results are displayed in the python console. Notepad is not opened. I know that it can be solved with this:
import os
os.system('notepad.exe ' + 'open.txt')
But I was wondering if there is a setting in visual studio to get around my problem? Any help would be greatly appreciated.
VisualStudio Community 2017 Python 3.6.6
Sparkington