public Dictionary<string,string> GetSourceDisksElements(String section) { section = "[" + section; Dictionary<string, string> keyToValue = new Dictionary<string, string>(); //打开文件流,开始读取文件 using (StreamReader sin = new StreamRea
文件结构 读取文件 第一种方式 public class Test { public static void main(String[] args) throws IOException { // 最好别用FileReader,容易漏读 // 如果是window系统,/需要换成\ FileInputStream in = new FileInputStream("/Users/mac/eclipse-workspace/Demo/src/Test/file.txt"); byte[]