void TForm1::rechercheFichtxt ()
{
ifstream entreeFichierClient("messieressai.txt",ios::in);
if (!entreeFichierClient)
{
Application->MessageBox("Ouverture du fichier impossible", "Warning");
}
char Nom[12], RA[14], DEC[14], M1[8], M2[8], M3[8], M4[8], M5[8], M6[8] ;
while (entreeFichierClient>>Nom>>RA>>DEC>>M1>>M2>>M3>>M4>>M5>>M6)
sortieLigne (Nom, RA, DEC, M1, M2, M3, M4, M5 ,M6);
}
void TForm1::sortieLigne ( const char *Nom, const char *M4, const char *M5, const char *M1, const char *M2, const char *M3, const char *RA, const char *DEC, const char *M6)
{
ListBox1->Items->Add(Nom);
}
voila ce que g fait pour l'instant pour lire le fichier texte.