UNB/ CS/ David Bremner/ teaching/ cs2613/ books/ gobyexample/ examples/ reading-files/ reading-files.sh
$ 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.