I had this convenient function in Python:
def follow(path): with open(self.path) as lines: lines.seek(0, 2) # seek to EOF while True:
Check out this Go package for reading from continuously updated files (tail -f): https://github.com/hpcloud/tail
t, err := tail.TailFile("filename", tail.Config{Follow: true}) for line := range t.Lines { fmt.Println(line.Text) }