How to read files and insert data count into JTable
?
I have n number of text files. What I need to do is to read data from each file and insert the data count of each corresponding file into Java table such that:
File Name Total records exist
-----------------------------------------
x1.txt 457
x2.txt 876
. .
. .
. .
xn.txt 345
-----------------------------------------
Total 1678
-----------------------------------------
Can you please help me out with some ideas to achieve the same?