Write a program that:
message.txtwith a single line containing a “
Hello file system.” message on it;
Created text file message.txt” to the standard output.
Here is an example command line session:
$ ./file-write Created text file message.txt $ cat message.txt Hello file system.
Both the messages on the standard output and file should be followed by a line break.
If your program is working correctly,
you should be able to open the
in your text editor of choice: gedit, nano, vi, notepad, etc.
You should see the written message on it.
On Linux systems you can use
to the the contents of the
from the command line.
On Windows system you can use
The line in
message.txt should be proper,
include a line break after it.
try first: hello
try next: file-read
Copyright © 2020-2023 Rudy Matela
All rights reserved