Reading Text Files
Let’s learn about reading text files
We'll cover the following...
In this lesson we will learn how to read plain text files, as well as using the /dev/random
UNIX device, which offers us a way of getting random numbers.
Reading a text file line by line
The function for reading a file line by line is found in byLine.go
and is named lineByLine()
. The technique for reading a text file line by line is also used when reading a plain text ...