/ Published in: Python
Expand |
Embed | Plain Text
#write to file f = open('c:/temp/workfile','w') f.write('hallo') f.close #open from file f = open('file.txt') #read linewise for i in f: print i #read characterwise for i in f.read(): print i
You need to login to post a comment.
