访问文件为Sudo

时间:2017-11-27 13:43:10

标签: c# xamarin.mac

如何在C#(xamarin.Mac)中将文件读取为Mac上的sudo / admin

我在/ usr /中创建了一个文件 我不能用以下内容阅读:

string text = system.io.file.ReadallText("/usr/file"); 

没有接缝可以访问该文件。

编辑: 它需要来自程序

0 个答案:

没有答案
相关问题