title: Java- Conversion of a file into a Byte array and vice-versa using java7
body: <p>Please explain me by giving an example of the following syntax:</p>
  
  <pre><code>static byte[] readAllBytes(Path path)
  static Path write(Path path, byte[] bytes, OpenOption... options)
  </code></pre>
  
  <p>I have a rough idea about path,bytes but OpenOption! So an example will be best.
  The code is related to java 7.</p>