#include <iostream>
#include <fstream>
#include <string>


using namespace std;

int main()
{
    ifstream file("102.txt");
    ofstream fileBis("1021.txt");

    while( file )
    {
        int val;
        string temp;
        file >> val;

        while(getline(file, temp))  // tant que l'on peut mettre la ligne dans "contenu"
        {
                cout << temp << endl;  // on l'affiche
        }

        fileBis << val << " ";
        //getline(fileBis,temp);
        //cout temp;
    }
    system ("pause");
	return 0;

}
