snowflake.snowpark.files.SnowflakeFile.read¶
- SnowflakeFile.read(size: int = - 1) Sequence [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.35.0/src/snowflake/snowpark/files.py#L293-L312)¶
From https://docs.python.org/3/library/io.html#io.RawIOBase.read (https://docs.python.org/3/library/io.html#io.RawIOBase.read)
Read up to size bytes from the object and return them. As a convenience, if size is unspecified or -1, all bytes until EOF are returned. Fewer than size bytes may be returned.
If 0 bytes are returned, and size was not 0, this indicates end of file.