" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
#include <fstream>
using namespace std;
int main()
{
char znak;
ifstream plik;
plik.open("plik.txt");
while(plik.get(znak)&&!plik.eof())
{
cout << znak;
if(znak>='0' && znak<='9')
break;
}
plik.close();
cout << endl;
system("PAUSE");
return EXIT_SUCCESS;
}