Problem Description

As soon as the program starts, check whether the input is coming from a file (redirected) or from the keyboard. If it is from a file, then give a "Reading from file..." message, otherwise give an "Enter data:" prompt.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next