Python for Engineers
Solve Problems by Coding Solutions - A Complete solution for python programming
Blog Pages
Blog
News
Distributions
NumPy Tutorials
Self Learning
IDE
Packages
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