Dear,

I am building a tool in Java at the moment.

For reading large files, I am using the following piece of code:

BufferedReader input = new BufferedReader(new FileReader(this.fileName));

System.out.println("Reading begins...");

try
{
String line = "";
String [] tempData = null;

while (( line = input.readLine()) != null)
{
tempData = line.split("\t");
data.put(Integer.parseInt(tempData[1]),
Integer.parseInt(tempData[2]));
}
}

========================

It takes 45 seconds to read a text file of 176 Mb. My question is:

Do you know a way how read such text files faster (than 45 seconds)? The faster, the better!

Thank you for your help!