How to write a memory efficient Go Lang code to
read N lines from large file at a time and process and continue till end of file.
You can use the bufio.Scanner to read line wise, process as you go.
Thank you. I want to write a small Go Lang code to read 5 lines at a time from Large File & process it. And continue to read next 5 lines and process and repeat this operation till End Of File occur. I am new to Go Lang. Started learning.
Go for it.