Frage

i'm trying to create a Random Access file in java. I write something in a new line.

  1. How can i return the address of that line in Java?

Also, I'm a bit confused with RAFs.

For example i have a file that consists of the following entries in alphabetical manner

George 10 10 8

Mary 9 10 10

Nick 8 8 8

Nickolas 10 10 9

I would like to return the grades of Nickolas. How can i declare that in a RAF?

Is there any method that can "read("Nickolas")" and return to me the line?

Thanks, in advance

Keine korrekte Lösung

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top