May-19-2018, 10:31 PM
Thank you, this finally works
baconFile = open('C:\\Python36\\kodovi\\bacon.txt', 'w') with open('bacon.txt', 'w') as f: f.write('hello world') with open('bacon.txt') as f: print(f.read()) with open('bacon.txt', 'w') as f: f.write('Bacon is not a vegetable.') with open('bacon.txt') as f: print(f.read())