public boolean saveData() {
		try {
			writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));
			try {
				writer.write(tabletoString(columnnames));
				writer.newLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			for (int i = 0; i < rowdata.length; i++) {
				writer.write(tabletoString(rowdata[i]));
				writer.newLine();
			}
			writer.close();
			return true;
		} catch (FileNotFoundException e) {
			writeLog(e);
			return false;
		} catch (IOException e) {
			writeLog(e);
			return false;
		}
	}