Sep-12-2017, 12:09 PM
try this:
f = open("test.txt","r+") print (f.write("hello")) f.seek(0,0) print (f.read()) f.close()
reading and writing to a text file help
|
|
Messages In This Thread |
reading and writing to a text file help - by jobemorgan - Aug-29-2017, 08:40 PM
RE: reading and writing to a text file help - by metulburr - Aug-29-2017, 09:05 PM
RE: reading and writing to a text file help - by Myersj281 - Aug-30-2017, 01:41 AM
RE: reading and writing to a text file help - by nilamo - Sep-11-2017, 09:36 PM
RE: reading and writing to a text file help - by Sagar - Sep-12-2017, 12:09 PM
|