Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想阅读 /sdcard/Android/data/com.example/Files/ 中文本文件的第三行。有没有办法做到这一点?
提前致谢
LineIterator ip = IOUtils.lineIterator( new BufferedReader(FileReader("__.txt"))); for (int lineNumber = 0; it.hasNext(); lineNumber++) { String line = (String) ip.next(); if (lineNumber == 3) { return line; } }