* @param tofile
   */
  public static void copyFile(String fromfile, String tofile) {
    Stella.ensureFileExists(fromfile, "copy-file");
    { InputFileStream from = null;

      try {
        from = Stella.openInputFile(fromfile, Stella.NIL);
        { OutputFileStream to = null;

          try {
            to = Stella.openOutputFile(tofile, Stella.NIL);
            InputStream.copyStreamToStream(from, to);

          } finally {
            if (to != null) {
              to.free();
            }
          }
        }

      } finally {
        if (from != null) {
          from.free();
        }
      }
    }
  }