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.

26 lines
749 B

## displayfile
### Instructions
Write a program that displays, on the standard output, the content of a file given as argument.
5 years ago
- Create a file `quest8.txt` and write into it the sentence `Almost there!!`
5 years ago
- The argument of the program in this case should be, `quest8.txt`.
5 years ago
- In case of error the program should print one the below messages accordingly:
- `File name missing`.
- `Too many arguments`.
### Usage :
```console
5 years ago
student@ubuntu:~/piscine-go/displayfile$ go build
student@ubuntu:~/piscine-go/displayfile$ ./displayfile
File name missing
5 years ago
student@ubuntu:~/piscine-go/displayfile$ ./displayfile quest8.txt main.go
Too many arguments
5 years ago
student@ubuntu:~/piscine-go/displayfile$ ./displayfile quest8.txt
Almost there!!
```