private void writeCsvFile(String filename,int numberOfLinesAfterHeader){
  BufferedWriter bw=IOUtils.getBufferedWriter(filename);
  try {
    for (int i=0; i < numberOfLinesAfterHeader; i++) {
      bw.write("1,37ff9d8e04c164ee793e172a561c7b1e,585045643000,28.2402534484863,-26.1793403625488,22,8,1000,0,29,0,60");
      bw.newLine();
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
    fail("Could not write to " + filename);
  }
 finally {
    try {
      bw.close();
    }
 catch (    IOException e) {
      e.printStackTrace();
      fail("Could not close " + filename);
    }
  }
}

private void writeCsvFile ( String filename , int numberOfLinesAfterHeader ) { BufferedWriter bw = IOUtils . getBufferedWriter ( filename ) ; try { for ( int i = 0 ; i < numberOfLinesAfterHeader ; i ++ ) { bw . write ( "1,37ff9d8e04c164ee793e172a561c7b1e,585045643000,28.2402534484863,-26.1793403625488,22,8,1000,0,29,0,60" ) ; bw . newLine ( ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; fail ( "Could not write to " + filename ) ; } finally { try { bw . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; fail ( "Could not close " + filename ) ; } } }
writes out a dummy csv file to a given location . the file has no header and just repeats one line taken from the actual input of one file .
