I have text file which is attached here with... the function below has two parameters fname and sname. The code below copies the file names1 into brranikings...now i want to search for fname in that file and add all the lines after word "
ranking" into an linked list until the word "
end" and similary with sname......can anyone suggest me how to do it....
void rankingFile(String fname, String sname) throws java.io.IOException {
FileReader rankings1 =
new FileReader("C:/Documents and Settings/Anjana/My Documents/doc/names1.txt");
BufferedReader brrankings1 = new BufferedReader(rankings1);
String srankings1;
while ((srankings1 = brrankings1.readLine()) != null) {
if(
}
thanks in advance
Infyniti
(I added code tags for ease of viewing. ~ SykkN)