Python for Engineers
Solve Problems by Coding Solutions - A Complete solution for python programming
Blog Pages
Blog
Online Compiler
NumPy
Distributions
Self Learning
IDE
Online Tools
About
Writing and reading integers from a file
f=open('myfile.txt','w')
for count in range(5):
f.write(str(count))
f.close()
f=open('myfile.txt','r')
t=f.read()
print t
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment