Java lecture + écriture de fichiers
Résolu/Fermé
Remad
Messages postés
1662
Date d'inscription
mardi 27 mai 2008
Statut
Membre
Dernière intervention
27 juillet 2012
-
Modifié par Remad le 24/05/2012 à 15:54
Remad Messages postés 1662 Date d'inscription mardi 27 mai 2008 Statut Membre Dernière intervention 27 juillet 2012 - 24 mai 2012 à 16:06
Remad Messages postés 1662 Date d'inscription mardi 27 mai 2008 Statut Membre Dernière intervention 27 juillet 2012 - 24 mai 2012 à 16:06
A voir également:
- Java lecture + écriture de fichiers
- Waptrick java football - Télécharger - Jeux vidéo
- Jeux java itel football - Télécharger - Jeux vidéo
- Écriture facebook - Guide
- Java apk - Télécharger - Langages
- Confirmation de lecture whatsapp - Guide
1 réponse
Remad
Messages postés
1662
Date d'inscription
mardi 27 mai 2008
Statut
Membre
Dernière intervention
27 juillet 2012
703
24 mai 2012 à 16:06
24 mai 2012 à 16:06
Trouvé:
else if (command.equals("ul")) { try { //Inspired from https://www.roseindia.net/java/beginners/java-write-to-file.shtml command = (String) ois.readObject(); FileWriter fstream = new FileWriter(localpath + path + command); BufferedWriter out = new BufferedWriter(fstream); command = (String) ois.readObject(); out.write(command); out.close(); System.out.println("Uploaded: " + path + command); oos.writeObject("OK"); } catch (Exception e) { oos.writeObject("FAIL: " + e); } }