Write a program that reads a name from the text file
If the file does not exist,
your program should print
name.txt: file not found.
If the file does exist,
your program should print the first word found in the file.
Here is an example command line session:
$ ls file-read $ ./file-read name.txt: file not found $ echo Mary > name.txt $ ./file-read Mary
The name given in the test input is no longer than 60 characters.
try first: file-write
try next: run-count
Copyright © 2020-2021 Rudy Matela
All rights reserved