Untitled

 avatar
unknown
plain_text
a year ago
435 B
3
Indexable
#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;
}
Editor is loading...
Leave a Comment