Sech
Sech

Reputation: 167

Android read specific line in csv file

so i have a csv file which each line is a an hex String (for exemple :

1/55aa55aa
2/65ba65ba

and so on until 64.

What i would like to know is , is there any way to point to a specific line (let's say 35) without having to read the first 34 lines ?

NB : I can already read and write the whole file.

Upvotes: 0

Views: 281

Answers (1)

Frederick Nyawaya
Frederick Nyawaya

Reputation: 2305

By csv you are implying each line/value is separated by a comma, so:

String[] hexes = yourcsv.split(",");
String line35 = hexes[34];

Upvotes: 1

Related Questions