code: @SuppressWarnings("resource")
      public static byte[] readFile(File file) throws IOException {
  
          // create input and output stream
          FileInputStream in = new FileInputStream(file);
  
          // read the content
          return readFully(in, (int)file.length());
      }
docs: Reads a file from the RFS and returns the file content.<p>
  
  @param file the file to read
  @return the read file content
  
  @throws IOException in case of file access errors