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