I have below code I want to written data that is currently pointed by pointer till the end and display that data on System.out Stream but it is not working my code is
where am I wrong?
although it is returning actual position of pointer in pointer using
I changed value from 300 to 10 and it is displaying all values after that pointer
But My Question is
1)if pointer is 300 is not in my file range why it is not throwing exception?
2)my second question can I read value of specific range in Random Access file I mean there is a start and end index to access a file in Random Access file
I shall duplicate this discussion in the IO forum.
Don't call a random access file XYZ.txt. You will get severely confused about it if you come back to it in six months and think it is a text file.