using (StreamReader streamReader = new StreamReader("C:\\Users\\zhang\\Desktop\\新建文件夹\\远程开关.txt")) { jsonTxt = streamReader.ReadToEnd(); }