An example of reading from a text file.
The function io.ReadAll
reads the content from the stream into memory until an error or EOF. For bigger files, it makes more sense to break the read operations into smaller chunks.
-
Run the program
$ make run