Fichier java
Fermé
ksmaili
Messages postés
3
Date d'inscription
vendredi 3 avril 2015
Statut
Membre
Dernière intervention
7 avril 2015
-
3 avril 2015 à 16:18
ksmaili Messages postés 3 Date d'inscription vendredi 3 avril 2015 Statut Membre Dernière intervention 7 avril 2015 - 7 avril 2015 à 09:47
ksmaili Messages postés 3 Date d'inscription vendredi 3 avril 2015 Statut Membre Dernière intervention 7 avril 2015 - 7 avril 2015 à 09:47
A voir également:
- Fichier java
- Fichier bin - Guide
- Waptrick java football - Télécharger - Jeux vidéo
- Jeux java itel football - Télécharger - Jeux vidéo
- Fichier epub - Guide
- Fichier rar - Guide
2 réponses
ElementW
Messages postés
4814
Date d'inscription
dimanche 12 juin 2011
Statut
Contributeur
Dernière intervention
5 octobre 2021
1 228
3 avril 2015 à 16:18
3 avril 2015 à 16:18
'lut
Tu coinces où?
aurait vous un code source à me proposer afin de réaliser ses 5 étapesNon, car on ne fera pas le boulot à ta place.
Tu coinces où?
ksmaili
Messages postés
3
Date d'inscription
vendredi 3 avril 2015
Statut
Membre
Dernière intervention
7 avril 2015
7 avril 2015 à 09:47
7 avril 2015 à 09:47
Salut gravgun, oui je coince je suis un jeune étudiant en dernier année, actuellement je suis en stage donc j'apprends et j'essaye de résoudre le problème.J'ai trouver cette première partie de code qui sert à lire un fichier texte et je crois bien que ses toi qui a poster ce code il y a quelques temps :
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
public class LogicielPart1 {
public static void main1(String[] args) {
}
public static void main(String[] args){
String fichier ="fichiertexte.txt";
// lecture du fichier texte
try{
InputStream ips=new FileInputStream(fichier);
InputStreamReader ipsr=new InputStreamReader(ips);
BufferedReader br=new BufferedReader(ipsr);
String ligne;
while ((ligne=br.readLine())!=null){
System.out.println(ligne);
}
br.close();
}
catch (Exception e){
System.out.println(e.toString());
}
}
voila je bloque sur les autres étapes et je me demande bien si je dois modifier quelques instruction sur la première partie.
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
public class LogicielPart1 {
public static void main1(String[] args) {
}
public static void main(String[] args){
String fichier ="fichiertexte.txt";
// lecture du fichier texte
try{
InputStream ips=new FileInputStream(fichier);
InputStreamReader ipsr=new InputStreamReader(ips);
BufferedReader br=new BufferedReader(ipsr);
String ligne;
while ((ligne=br.readLine())!=null){
System.out.println(ligne);
}
br.close();
}
catch (Exception e){
System.out.println(e.toString());
}
}
voila je bloque sur les autres étapes et je me demande bien si je dois modifier quelques instruction sur la première partie.