code: public OutputStream getOutput(GridFile file) throws IOException {
        checkIsNotDirectory(file);
        createIfNeeded(file);
        return new GridOutputStream(file, false, data);
     }
docs: Opens an OutputStream for writing to the given file.
  @param file the file to write to
  @return an OutputStream for writing to the file
  @throws IOException if an error occurs