Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
435 B
1
Indexable
Never
#include <iostream>
#include<fstream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
	ifstream inputFile("fleta.txt");
	if(!inputFile)
	{
		cout<<"File qe kerkuat nuk u gjet "<<endl;
		return 1;
	}
	string fjalia;
	while(getline(inputFile,fjalia))
	{
		cout<<fjalia<<endl;
	}
	inputFile.close();
	return 0;
}
Leave a Comment