code: public static void writeFile(String filename, String code){
          try {
              FileOutputStream fidout = new FileOutputStream(filename);
              fidout.write(code.getBytes());
              fidout.close();
          } catch (Exception e) {
              System.err.println(e);
          }
      }
docs: ===============================================================