I write as in MSDN, I can say I copy from an example. But in such a way that just File.Create is still an error "Access is denied on the path 'c: \ output.PF'". I can not understand what the problem is.
string sss = v.ToJson(); using (FileStream fs = File.Create(@"c:\output.PF")) { Byte[] info = new UTF8Encoding(true).GetBytes(sss); // Add some information to the file. fs.Write(info, 0, info.Length); }