Python I/O Open Close File
Open a file
fo = open("sample.txt", "wb")
fo.write( "This is sample.\nSave this in file!!\n");
Close open file
fo.close()
Written by skysnap
Related protips
1 Response
better with with
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#