문제

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

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top