Q. How many file objects would you need to manage the following situations:
(a) To process four files sequentially.
(b) To merge two sorted files into third file.
Answer =
(a) Four objects are needed.
(b) Three objects are needed.
(a) To process four files sequentially.
(b) To merge two sorted files into third file.
Why 4 in the first part?
ReplyDeleteTo process four files sequentially, you would typically need four file objects, one for each file. This allows you to open each file individually and perform sequential processing on them.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )