LETTURA FILE
unknown
plain_text
3 years ago
297 B
15
Indexable
#include <stdio.h>
#include <iostream>
#include <fstream>
using namespace std;
//il nostro file si chiama "ciao.txt"
int main(){
string line;
ifstream fin("ciao.txt");
while(!fin.eof()){
getline(fin, line);
cout<<line<<endl;
}
fin.close();
return 0;
}
Editor is loading...