2019-10-11 13:42:25 +03:00

12 lines
210 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
# Далее рассмотрим запись в файл.