File.read

File.read(*, as_text=False) → bytes | str

Reads the file contents into memory, either as bytes or as a string.

Parameters:

as_text : bool, default False Whether to read the file as a string. By default, the raw bytes of the file will be returned.

Returns:

bytes | str

Examples

f = redivis.file("4c10-bk27tqmet.rkgXgUlmnJrEFFC6oWAqqA")

file_content_string = f.read(as_text=True)

Last updated