Reading and writing files can be done in numerous ways. Go provides interfaces that make it easy to write your own functions that work with files or any other reader/writer interface.
Between the os, io, and ioutil packages, you can find the right function for your needs. These examples cover a number of the options available.