mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Clement Denis
26b3a37cc0
|
4 years ago | |
---|---|---|
.. | ||
README.md |
README.md
displayfile
Instructions
Write a program that displays, on the standard output, the content of a file given as argument.
Usage :
student@ubuntu:~/[[ROOT]]/displayfile$ go build
student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile
File name missing
student@ubuntu:~/[[ROOT]]/displayfile$ echo "Almost there!!" > quest8.txt
student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt main.go
Too many arguments
student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt
Almost there!!
student@ubuntu:~/[[ROOT]]/displayfile$