String currentRecord = "";
String line = null;
while((line = file.readLine()) != null) {
  currentRecord = currentRecord  + line;
}