Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void ecrireStringVersFichier(String nomFichier, String infosEtudiant){
- try{
- File monFichier = new File(nomFichier);
- // !(etudiantExiste(infosEtudiant, nomFichier))
- FileWriter writer = new FileWriter(monFichier, true);
- writer.write(infosEtudiant + System.getProperty("line.separator"));
- writer.flush();
- writer.close();
- }catch (Exception e){
- System.err.println("Error: " + e.getMessage());
- }
- }
Add Comment
Please, Sign In to add comment