这是用 C++/winRT 编写的,最终将取代 C++/CX。以下 3 行代码位于对
OpenSequentialWriteAsync()
. 但是,唉,没有这样的命令,只有
OpenSequentialReadAsync()
.
是否有不允许创建顺序文件的原因???
StorageFolder _storageFolder = ApplicationData::Current().LocalFolder();
StorageFolder _turboCalc = co_await _storageFolder.CreateFolderAsync(L"TurboCalc", CreationCollisionOption::OpenIfExists); //create sub folder in folder
StorageFile _storageFile = co_await _turboCalc.CreateFileAsync(L"FileDoubles.dbo", CreationCollisionOption::ReplaceExisting); //create file in sub folder