Question

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

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top