This content has been marked as final. Show 3 replies
Note that skip() is for input, not output!
The solution for when you want to write (or read) bytes from
a specific byte offset is to use RandomAccessFile:
That being said:
1. Most people who think they need to use RAF are mistaken.
Perhaps if you described your problem, what you are doing,
what your goal is, forum members could suggest a better solution.
2. RandomAccessFile is for binary I/O, not text. Don't confuse the two.