Is it a regular text file? Then it's not possible to know where line 500 is without parsing the previous lines for CRLF characters or other control characters that seperate lines

My suggestion: use a database or an xml file if possible