Dev c++lecture et ecriture dans fichier texte
Titiii25
-
Titiii25 -
Titiii25 -
Bonjour,
Voici mon code existant :
string xNom;
int xMat,xNbHeures;
float xTaux,xSal;
// recuperation du personnel
ifstream fichier("E:\\Kevin\\Cours\\TSI2\\PTI\\PTI_3\\personnel.txt",ios::in);
while(fichier.eof())
{
fichier >> xNom >> xMat >> xTaux >> xNbHeures >> xSal ;
}
Quand je compile tout marche bien mais il ne m'affiche rien a l'écran pour mon fichier personnel.txt contient :
Bernard 3567 8.5 35 1338,75
Jean 3568 8,7 35 1370,25
. Quel est le problème ? Merci de vos réponses.
Voici mon code existant :
string xNom;
int xMat,xNbHeures;
float xTaux,xSal;
// recuperation du personnel
ifstream fichier("E:\\Kevin\\Cours\\TSI2\\PTI\\PTI_3\\personnel.txt",ios::in);
while(fichier.eof())
{
fichier >> xNom >> xMat >> xTaux >> xNbHeures >> xSal ;
}
Quand je compile tout marche bien mais il ne m'affiche rien a l'écran pour mon fichier personnel.txt contient :
Bernard 3567 8.5 35 1338,75
Jean 3568 8,7 35 1370,25
. Quel est le problème ? Merci de vos réponses.
A voir également:
- Dev c++lecture et ecriture dans fichier texte
- Fichier bin - Guide
- Fichier epub - Guide
- Dev c++ - Télécharger - Langages
- Fichier rar - Guide
- Comment réduire la taille d'un fichier - Guide