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: