sys_io_File

Overview

sys_io_File is a class in Aspose.Font FOSS for Python.

This class provides 3 methods for working with sys_io_File objects in Python programs. Available methods include: getBytes, read, write. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.

Methods

SignatureDescription
getBytes(path)` returns the entire contents of the file at path as a bytes object
read(path, binary)Opens the file at path and returns its contents as text or bytes depending on the binary flag
write(path, binary)Writes the provided data to the file at path, treating it as binary if the binary flag is true

See Also