Os
Get all files in subdirs
Get Environment
Files
Underlying open is from io
library
Modes
'r'
read; DEFAULT'w'
writing(erase existing file)'w+'
writing(create new file if it doesn't exist)'a'
appending to the end'a+'
appending to the end(create new file if needed)'r+'
both reading and writing
Reading Data
With
Automatically close for ya
Pickle
CPickle
optimized cousin cPickle written in C, 1000x faster
just doesn't support subclassing of the Pickler() and Unpickler() classes
usually better
same interface
Advanced OS*
could bypass system caches, more metadata/permissions access
Play Audio Files
Last updated