File.read
Last updated
Was this helpful?
Reads the file contents into memory, either as bytes or as a string.
as_text : bool, default False
Whether to read the file as a string. By default, the raw bytes of the file will be returned.
start_byte : int, default 0
The offset byte at which to start reading the file. Allows for reading part of a file. If not specified, the file will be read from the start.
end_byte : int, default None
The byte at which to stop reading the file, inclusive. Allows for reading part of a file. If not specified, the file will be read to the end.
bytes | str
Last updated
Was this helpful?
Was this helpful?

