There is an article about the buffered approach but I think the example is outdated:
https://odin-lang.org/news/read-a-file-line-by-line/
See also this thread: