read_lines
Mojo function 🡭
read_lines
➕
➖def read_lines(path: String, buf_size: Int = Int(131072)) -> List[List[UInt8]]Read all the lines in the file and return them as a List of Lists of bytes.
Args:
- path (
String): The file path to open and read. - buf_size (
Int): The size of the buffer to use.
Returns:
List[List[UInt8]]: A list of lines, where each line is a List[UInt8].
Raises: