What do you mean by "address", the offset from the start of the file? Just count the length of each line, making sure to account for the new line characters.

What do you mean by 8byte?