Page 1 of 1

About Question enthuware.ocpjp.v7.2.1086 :

Posted: Sun Mar 09, 2014 1:51 am
by icepeanuts
Just one more question.

If the handles are of RandomAccessFile, fileName2 will end up with 200 bytes because it writes from the beginning of the fileName2, overwriting the first 100 bytes and leaving the rest untouched. Is it correct?

Re: About Question enthuware.ocpjp.v7.2.1086 :

Posted: Sun Mar 09, 2014 2:21 am
by admin
yes, that is correct.

Re: About Question enthuware.ocpjp.v7.2.1086 :

Posted: Tue Feb 18, 2020 4:35 am
by bvrulez
I am curious to what the question refers to. I don't understand the question. Is there an option to overwrite just parts of the existing file?

Re: About Question enthuware.ocpjp.v7.2.1086 :

Posted: Tue Feb 18, 2020 4:56 am
by admin
Not sure what you mean. The question contains a code that operates on two files. You are expected to know the outcome.
Yes, it is possible to modify just parts on an existing file.