Nguyen Tien Huy
Saturday, April 19, 2014
All file modes in Python
r
for reading
w
for writing
r+
opens for reading and writing (cannot truncate a file)
w+
for writing and reading (can truncate a file)
rb+
reading or writing a binary file
wb+
writing a binary file
a+
opens for appending
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment