2012-11-01 22:18:07 -07:00

12 lines
187 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.