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?
About Question enthuware.ocpjp.v7.2.1086 :
Moderator: admin
-
- Posts: 53
- Joined: Thu Nov 22, 2012 12:01 am
- Contact:
-
- Site Admin
- Posts: 10398
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1086 :
yes, that is correct.
-
- Posts: 33
- Joined: Sat Feb 15, 2020 12:44 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1086 :
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?
-
- Site Admin
- Posts: 10398
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1086 :
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.
Yes, it is possible to modify just parts on an existing file.
Who is online
Users browsing this forum: No registered users and 5 guests