how to track a file

how can i track a file .

ie i have some files ,in which bank accoutn details are there .

i have to find the every accounts final balance .

i have to read line by line (i have done that using streams ).

i want track which are read lines and i have to skip those read lines .

[304 byte] By [rajasekhar@12a] at [2007-11-27 3:32:54]
# 1

> how can i track a file .

Huh?

> ie i have some files ,in which bank accoutn details are there .

I think a database would be more appropriate. :)

> i have to find the every accounts final balance .

>

> i have to read line by line (i have done that using

> streams ).

>

> i want track which are read lines and i have to skip

> those read lines .

How about not caring about lines but reconstructing Account objects from the file that can tell you their totals?

CeciNEstPasUnProgrammeura at 2007-7-12 8:35:57 > top of Java-index,Java Essentials,Java Programming...
# 2
i have the file with data1 d 1002 d 2003 d 4001 d 5001 is acc no ., d is deposit , 100 is amount now i wan to have o/p 1' balance is 600 2 's is 200 3's is 400
rajasekhar@12a at 2007-7-12 8:35:57 > top of Java-index,Java Essentials,Java Programming...
# 3
Read the file line by line then parse each line and store the information for your usage. Save some where the last read line number and next time read from there. If always file is written at the end.You can use random access files. You can start reading from any point you want.
jawadhashmia at 2007-7-12 8:35:57 > top of Java-index,Java Essentials,Java Programming...