Well, it mirrors the writeFile() function, but i guess since its only used once it we could call ioutil.ReadFile directly and do the casts, etc.