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/ のテキスト ファイルの 3 行目だけを読みたい。これを行う方法はありますか?
前もって感謝します
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; } }