sc markdown">
      <p>Synchronously write a list of bytes to a file.</p>
<p>Opens the file, writes the list of bytes to it and closes the file.</p>
<p>By default <a href="dart-io/File/writeAsBytesSync.html">writeAsBytesSync</a> creates the file for writing and truncates
the file if it already exists. In order to append the bytes to an existing
file, pass <a href="dart-io/FileMode/append-constant.html">FileMode.append</a> as the optional mode parameter.</p>
<p>If the <code>flush</code> argument is set to <c