public static void saveAsASCII(NSDictionary root,File out) throws IOException {
  File parent=out.getParentFile();
  if (!parent.exists())   if (!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.toASCIIPropertyList());
  w.close();
}

public static void saveAsASCII ( NSDictionary root , File out ) throws IOException { File parent = out . getParentFile ( ) ; if ( ! parent . exists ( ) ) if ( ! 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 . toASCIIPropertyList ( ) ) ; w . close ( ) ; }
saves a property list with the given object as root into a ascii file .
