且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

添加文本文件的Windows Store应用程序(窗口RT)

更新时间:2023-10-19 18:57:52

您可以使用的 FileIO专注类追加到一个文件中。例如...

You can use the FileIO class to append to a file. For example ...

// Create a file in local storage
var folder = ApplicationData.Current.LocalFolder;
var file = await folder.CreateFileAsync("temp.txt", CreationCollisionOption.FailIfExists);

// Write some content to the file
await FileIO.WriteTextAsync(file, "some contents");

// Append additional content
await FileIO.AppendTextAsync(file, "some more text");



检查出的更多的例子文件访问样品。