Easy way to read file lines on two directions: from the beginning to the end and from the end to the beginning.