Search code examples
androidfilerandom-access

Android - efficient way to extract specific row's data from 1,440,000 row text file


I have a terrain data which contains elevations as shown below

And each file consists of 1,440,000 rows

.
.
.
183
192
127
.
.
.

how can I access specific rows directly from the file without wasteful full-data memory load? (in Android)


Solution

  • I believe your best option is to convert your text file to a SQLite database.