I have a csv file and suppose I want to read file
from line number say 14 till line number 30
How this can be achieved?
Thanks,
I have a csv file and suppose I want to read file
from line number say 14 till line number 30
How this can be achieved?
Thanks,
have you tried this:
FileInputStream fs= new FileInputStream("someFile.txt");
BufferedReader br = new BufferedReader(new InputStreamReader(fs));
for(int i = 0; i < 14; ++i)
br.readLine();
String lineIWant = br.readLine();
Use any of CSV libraries, such as CSV Java or CSV Reader.
You should use jxl library. You can find it at http://jexcelapi.sourceforge.net/. I use it in my project and it is really helpful.