Ask Your Question
2

When the program reads data from the console and file, it produces varied outcomes.

asked 2022-09-03 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-07-30 21:00:00 +0000

nofretete gravatar image

This is because the data inputted from the console is usually real-time and interactive, meaning that the program can prompt the user to enter specific data and respond accordingly. On the other hand, when reading data from a file, the program has to handle a pre-existing set of data that may not be formatted in the way it expects or require additional processing to make it usable. Additionally, the program may encounter errors or exceptions when reading from a file, which can affect its intended outcome. Overall, the program must be designed to handle both console and file input in a way that accommodates potential differences in data type, structure, and input method.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-09-03 11:00:00 +0000

Seen: 10 times

Last updated: Jul 30 '21