Parent classes: File
A DiskFile is a particular File which is able to perform basic read/write operations
on a file stored on disk. It implements all methods described in File, and
some additional methods relative to endian encoding.
By default, a DiskFile is in ASCII mode. If changed to
the binary mode, the default endian encoding is the native
computer one.
The file might be open in read, write, or read-write mode, depending on the parameter
mode (which can take the value 'r', 'w' or 'rw' respectively)
given to the torch.DiskFile(fileName, mode).