void lecture()
{
ifstream myFlux("C:/test.txt");
if(myFlow)
{
string line;
while(getline(myFlow,line))
{
int position=myFlow.tellg();
cost< < "position in the "< file < position< < endl;
cost< < line< < endl;
}
getline;
}
else
{
cost< < "Unable to open file" < < endl;
}
}
Commentaires (0)
Laisser un commentaire
Connectez-vous pour commenter
Rejoignez la discussion et partagez vos connaissances avec la communauté
Chargement des commentaires...