snowflake.snowpark.files.SnowflakeFile.readlines¶
- SnowflakeFile.readlines(hint: int = - 1) list[Sequence] [source]¶
From https://docs.python.org/3/library/io.html#io.IOBase.readlines
Read and return a list of lines from the stream. hint can be specified to control the number of lines read: no more lines will be read if the total size (in bytes/characters) of all lines so far exceeds hint.
hint values of 0 or less, as well as None, are treated as no hint.
Note that it’s already possible to iterate on file objects using for line in file: … without calling file.readlines().