File Objects.

File objects are implemented using C<#723#><#723#>'s stdio package and can be created with the built-in function open() described under Built-in Functions below.

When a file operation fails for an I/O-related reason, the exception IOError is raised. This includes situations where the operation is not defined for some reason, like seek() on a tty device or writing a file opened for reading.

Files have the following methods:


#funcdesc730#


#funcdesc734#


#funcdesc740#


#funcdesc746#


#funcdesc756#


#funcdesc764#


#funcdesc770#


#funcdesc780#


#funcdesc786#