症状:使用Eclipse读取文件时,路径输入确认正确(前提!!!),但控制台总报错: 错误类型一: Exception in thread "main" java.io.FileNotFoundException: file.txt (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init&g…
public static List<PostPerson> GetNameByFile() { #region 读取txt文件 var file = File.Open(Environment.CurrentDirectory + "\\aaa.txt", FileMode.Open); List<string> txt = new List<string>(); using (var stream = new StreamReader(file,…