Citrine/US | Manual

[ File ] seek

☞ f := File new: '/tmp/a.txt'.
f write: 'abcdefgh'.
f open: 'r'.
☞ x := f end, seek: -5, read bytes: 3.
☞ y := f rewind, seek: 5, read bytes: 3.
✎ write: x, stop.
✎ write: y, stop.