get current line number in a file