fprintf, fopen, etc... c'est du C. En C++:
http://c.developpez.com/faq/cpp/?page=fichiers#FICHIERS_lecture_par_ligne