Ben Monastyrsky Ben Monastyrsky - 1 year ago 127
Python Question

Python write() function not working

f = open('path.txt','w')
text = f.write('This is a test\n')

This is supposed to write on the file path.txt "This is a test" but it doesn't.

Answer Source

Try doing


and delete


Hope I helped. :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download