Add helper functions to read/write files in Go