Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 395 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 395 Bytes

File Reader

An example of reading from a text file.

ReadAll vs Read

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.

Setup

  1. Run the program

    $ make run

Reference and Credits