且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java阅读第n行

更新时间:2023-12-01 09:39:16

Is there a way to do this?

Not unless the lines are of a fixed number of bytes each, no.

You don't have to actually keep each line in memory - but you've got to read through the whole file to get to the line you want, as otherwise you won't know where to start reading.

相关阅读

推荐文章