hl-1">!=</span><span class="hl-0"> nil {</span><br/><span class="hl-0">   log.</span><span class="hl-2">Fatal</span><span class="hl-0">(err)</span><br/><span class="hl-0"> }</span>
</code><button>Copy</button></pre>
<p>If the open fails, the error string will be self-explanatory, like</p>
<pre><code><span class="hl-0"> open file.go: no such file or directory</span>
</code><button>Copy</button></pre>
<p>The file&#39;s data can then be read into a slice of bytes. Read and
Write take their byte counts from the