The mode-string argument is a string defining the access modes used
to open the file with; this string is passed as-is to the C library's
fopen() function. Usually one of the following strings is used,
Other options exist; consult a C library manual for details.
When the file-object argument is defined it should be a file object, the file it points to will be closed and the new file will be opened on this object.
Go to the first, previous, next, last section, table of contents.