File read performance
I need to read a text file with each line being added to an array list. What is the most optimal way to do this. here is an example of what I have so far.
int len = (int)(new File(file).length());
FileInputStream fis =
byte buf = new byte[len];
String raw = new String(buf);
String  lines = raw.split("\\n");