I have a text file that contains > 500 million lines and it is structured as follows:
54517. lat:53.533459; lon:8.8005426; path:c:\brem_5.xml;
54518. lat:53.037579; lon:8.800404; path:c:\brem_5.xml;
54519. lat:53.03358275; lon:8.610994; path:c:\brem_5.xml;
54520. lat:53.027389; lon:8.797809; path:c:\brem_6.xml;
54521. lat:53.043866; lon:8.7971675; path:c:\brem_7.xml;
54522. lat:53.0311901; lon:8.794269; path:c:\brem_7.xml;
....
....
....
and I am writing a method that given the "lat" and "lon" it should return the path. I thought about dividing the huge file into sections "sec0,sec1,sec2,sec3,...,secn", and then creating threads for each section that looks for that "lat" and "lon", and when a thread returns the path, the other threads will be killed.
my question is, is my approach is valid? and what is the optimum solution for such a problem.