How to

A collection of 86 posts

Go: Read a file line by line

Go: Read a file line by line

In this tutorial we will look at how we can read a file line by line using Go. Go makes this incredibly easy by using bufio.NewScanner(). You can find the full source