Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   Fileinputs (http://www.programmingforums.org/showthread.php?t=1485)

Infyniti Dec 9th, 2004 2:13 PM

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)


All times are GMT -5. The time now is 3:44 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC