Problem2207--Write a program that prompts for an input file name

2207: Write a program that prompts for an input file name

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

Write a program that prompts for an input file name, receives the input file name in a C-string. The program should check for errors opening a file for writing. It is not necessary for the program to do anything other than open the file.

Input

an input file name

Output

If the task is completed, then print

Sample Input Copy

a.txt

Sample Output Copy

yes

Source/Category

43