I am having troubles writing a textfile in PyScripter. the code I am trying is:
filename = ("C:/RemoteSensing.txt") f = open(filename, 'w') f.write ("Check sun elevation in Landsat8 image of Baffin Island. ") f.close()But I get an error saying invalid mode ("w") or with my filename.
Moderator Larz60+: Added code tags -- see https://python-forum.io/misc.php?action=help&hid=25