string filepath = "/storage/emulated/0/Res/Pico/sn.txt";//读取存放在PICO设备中的根目录Res文件夹下
if (File.Exists(filepath))
{
result = File.ReadAllText(filepath);
}
txt.text = result;//当前页面头上的SN设备码
---------------------------------------------
写入
StreamWriter sw = new StreamWriter("/storage/emulated/0/Res/Pico/" + "data.txt");
string data = input.text;
sw.Write(data);
sw.Close();