We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public static void SaveAsASCII(NSArray root, FileInfo outFile) { string parent = outFile.DirectoryName; if (!Directory.Exists(parent)) Directory.CreateDirectory(parent); using (Stream fous = outFile.Open(FileMode.OpenOrCreate, FileAccess.ReadWrite)) using (StreamWriter w = new StreamWriter(fous, Encoding.ASCII)) { w.Write(root.ToASCIIPropertyList()); } }
It is not a full overwrite in case writing to an existing file and leaves an invalid file.
The text was updated successfully, but these errors were encountered:
Following line will fix
fous.SetLength(0);
Sorry, something went wrong.
@abcjjy acknowledged, I'll take a look as soon as I can.
No branches or pull requests
It is not a full overwrite in case writing to an existing file and leaves an invalid file.
The text was updated successfully, but these errors were encountered: