标签:span for code 读写 int log str success read
1、从文件中读取三行数据
String[] lines = new String[3]; boolean readPointerFileSuccess = true; try (Scanner scanner = new Scanner(pointerFile)) { for (int i = 0; i < lines.length; i++) { if (scanner.hasNextLine()) { lines[i] = scanner.nextLine(); } else { readPointerFileSuccess = false; } } }
标签:span for code 读写 int log str success read
原文地址:http://www.cnblogs.com/orco/p/6223163.html