public static void saveAsGnuStepASCII(NSArray root,File out) throws IOException {
  File parent=out.getParentFile();
  if (!parent.exists() && !parent.mkdirs()) {
    throw new IOException("The output directory does not exist and could not be created.");
  }
  OutputStreamWriter w=new OutputStreamWriter(new FileOutputStream(out),"ASCII");
  w.write(root.toGnuStepASCIIPropertyList());
  w.close();
}

public static void saveAsGnuStepASCII ( NSArray root , File out ) throws IOException { File parent = out . getParentFile ( ) ; if ( ! parent . exists ( ) && ! parent . mkdirs ( ) ) { throw new IOException ( "The output directory does not exist and could not be created." ) ; } OutputStreamWriter w = new OutputStreamWriter ( new FileOutputStream ( out ) , "ASCII" ) ; w . write ( root . toGnuStepASCIIPropertyList ( ) ) ; w . close ( ) ; }
saves a property list with the given object as root into a ascii file .
