public static void exportData() { //教室配置 string roomConfig = MemoryTable.getRoomConfigJson(); string strReadFilePath1 = @"./config/roomConfig.txt"; StreamWriter srWriteFile1 = new StreamWriter(strReadFilePath1); srWriteFile1.Write(roomConfig); srWriteFile1.Close(); //设备位置映射 EquipmentConfigCtl.clearEquipmentMapOfDB(); string strReadFilePath2 = @"./config/equipmentMaps.txt"; string equiMap = MemoryTable.getEquipmentMapJson(); StreamWriter srWriteFile2 = new StreamWriter(strReadFilePath2); srWriteFile2.Write(equiMap); srWriteFile2.Close(); //学生基本信息,客户端支持更改的只有绑定的学生卡 string strReadFilePath3 = @"./config/Person.txt"; string studentInfo = MemoryTable.getStudentInfoJson(); StreamWriter srWriteFile3 = new StreamWriter(strReadFilePath3); srWriteFile3.Write(studentInfo); srWriteFile3.Close(); }