for each line you reopen file and move cursor to the end of it (really slow operation)