private static void outputTxt(String ExportFailStudentMsg){
FileSystemView fsv = FileSystemView.getFileSystemView();
File com=fsv.getHomeDirectory();
System.out.println(com.getPath());
File f=new File(com.getPath()+"\failmsg.txt");
FileOutputStream fos;
try {
fos = new FileOutputStream(f);
OutputStreamWriter dos=new OutputStreamWriter(fos);
dos.write(ExportFailStudentMsg);
dos.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}