📌  相关文章
📜  打开文件 xamarin 表单 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:05.943000             🧑  作者: Mango

代码示例1
var fn = "File.txt";
var file = Path.Combine(FileSystem.CacheDirectory, fn);
File.WriteAllText(file, "Hello World");

await Launcher.OpenAsync(new OpenFileRequest
{
    File = new ReadOnlyFile(file)
});