You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
186 B
Bash
12 lines
186 B
Bash
5 years ago
|
$ echo "hello" > /tmp/dat
|
||
|
$ echo "go" >> /tmp/dat
|
||
|
$ go run reading-files.go
|
||
|
hello
|
||
|
go
|
||
|
5 bytes: hello
|
||
|
2 bytes @ 6: go
|
||
|
2 bytes @ 6: go
|
||
|
5 bytes: hello
|
||
|
|
||
|
# Next we'll look at writing files.
|