title: How to read/write from/to a file using Go
body: <p>I've been trying to learn Go on my own, but I've been stumped on trying read from and write to ordinary files.</p>
  <p>I can get as far as <code>inFile, _ := os.Open(INFILE, 0, 0)</code>, but actually getting the content of the file doesn't make sense, because the read function takes a <code>[]byte</code> as a parameter.</p>
  <pre><code>func (file *File) Read(b []byte) (n int, err Error)
  </code></pre>