#include <iostream>
#include <fstream>

using namespace std;

ifstream f;
char nazwa[256];
string wiersz;

int main()
{
    cout << "Podaj nazwe pliku: ";
    cin >> nazwa;
    f.open(nazwa);
    int i = 1;
	while(getline(f, wiersz))
	{
		cout << i++ << ": " << wiersz << endl;
	}
	f.close();
    return 0;
}


