Python for Engineers
Solve Problems by Coding Solutions - A Complete solution for python programming
Blog Pages
(Move to ...)
Code
Top 10 Blogs
NumPy Tutorials
Distributions
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
‹
›
Home
View web version
No comments:
Post a Comment