12 lines
186 B
Bash
12 lines
186 B
Bash
$ 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.
|