read_lines
Mojo function 🡭
read_lines
➕
➖
fn read_lines(path: String, buf_size: Int = 131072) -> List[List[SIMD[uint8, 1]]]
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
: A list of lines, where each line is a List[UInt8]
.
Raises: