stdio's <tt class=\"cfunction\">fopen()</tt>:
'r'for reading,
'w'for
'a'opens it for
'r+',
'w+'and
'a+'open the
'w+'truncates the file). Append
'b'to the mode to open the file in binary mode, on systems that
'U'or
'rU'. If Python is built
'\n', the Unix end-of-line
'\r', the Macintosh convention or
'\r\n',
'\n'by the Python program. If Python is built without universal
'U'is the same as normal text
None(if no
'\n',
'\r',
'\r\n', or a tuple containing all the newline types seen.
'r'. When opening
'b'to the <var>mode</var> value
0777(octal), and the current umask value is