This is a draft cheat sheet. It is a work in progress and is not finished yet.
os
Pipe Open |
popen( cmd[, mode[, bufsize]] )
|
In Memory Temp File |
|
List Directory Entries |
|
Rename File |
|
File Stats |
|
Access Modes
r |
Read |
rb |
Read |
Binary |
r+ |
Read/ Write |
rb+ |
Read/ Write |
Binary |
w |
Write |
Create/Overwrite |
wb |
Write |
Create/Overwrite |
w+ |
Read/ Write |
Create/Overwrite |
wb+ |
Read/ Write |
Binary, Create/Overwrite |
a |
Append |
ab |
Append |
Binary |
a+ |
Read/ Append |
ab+ |
Read/ Append |
Binary |
File I/O
Open |
f = open( name [, access_mode][, buffering] )
|
Close |
|
Write |
|
Read |
|
Location |
|
Position |
|
from == 0: From Beginning
|
|
|
from == 1: From Current Pos
|
|
|
|
|
|
|