I am trying hard to save some string to a text file with ASCII encoding in a win8 app project. Below is some of the code snippet:
StorageFile myfile = await ApplicationData.Current.LocalFolder.CreateFileAsync("test.txt");
await FileIO.WriteTextAsync(myfile, "abcd→1234");
But it ended with UTF-8 encoding.
I've done lots of search online and found nothing.So my question is how to write string to text file with ASCII as the encoding. Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…