Kagamin: > Don't you minimize heap allocation etc by reading whole file in one io call? The whole thread was about lazy read of file lines. If the file is very large it's not wise to load it all in RAM at once. Bye, bearophile