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.
20 lines
561 B
20 lines
561 B
5 years ago
|
## displayfile
|
||
6 years ago
|
|
||
6 years ago
|
### Instructions
|
||
6 years ago
|
|
||
5 years ago
|
Write a program that displays, on the standard output, the content of a file given as argument.
|
||
6 years ago
|
|
||
5 years ago
|
### Usage :
|
||
6 years ago
|
|
||
|
```console
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/displayfile$ go build
|
||
|
student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile
|
||
6 years ago
|
File name missing
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/displayfile$ echo "Almost there!!" > quest8.txt
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt main.go
|
||
6 years ago
|
Too many arguments
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt
|
||
6 years ago
|
Almost there!!
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/displayfile$
|
||
6 years ago
|
```
|