Hi,
I have to read a file contents which size range from 100 KB to 200MB.This file contain the data of packet transmission between the system interfaces.
So the file may contain 100 to 800000 lines (data). I have to parse each line and to draw in some format based on each line data.The file will be on the
server.I have to read it from a thin
java client through
servlet or web service.
As i am new to java i am not aware of IO streams. I planned in such a way
1) Using linux command through rt.exerc() and find the total lines of the file which will be sent to client.
2) The client will create the page link based on the line count (a page may display 300 data)
3) Based the page clicked i need to fetch the contents of the specified portion of the file.Suppose if user clicks
the link 20 i have fetch the file content between the lines 5700 to 6000.
Is there any way to read a specified portion of the file using line numbers with out reading the full content of the file.
Please suggest me some right way of doing this.Thank you.
Regards
Ganesh M