public void saveToFile(String filePath) throws FileNotFoundException, IOException, Exception{
filePath = filePath.toLowerCase();
setOutputFile(filePath);
FileWriter writer = null;
if(filePath.endsWith("csv")){
writer = new CSVWriter(data, result, outputFile);
}
if(filePath.endsWith("xls")){
writer = new XLSWriter(data, result, outputFile);
}
if(filePath.endsWith("wss")){