Easy
Missing File
Read a file name and try to open it for reading. Print its first line, or
File not found. (Only exists.txt exists; create it first with the text I exist.)Input
One file name.
Output
One line.
Sample 1
Input
exists.txt
Output
I exist
Sample 2
Input
nope-4821.txt
Output
File not found
Output appears here