c++ lettura file code example
Example: c++ lettura file
#include <fstream.h>
void main()
{
ifstream OpenFile("cpp-input.txt");
char ch;
while(!OpenFile.eof())
{
OpenFile.get(ch);
cout << ch;
}
OpenFile.close();
}
#include <fstream.h>
void main()
{
ifstream OpenFile("cpp-input.txt");
char ch;
while(!OpenFile.eof())
{
OpenFile.get(ch);
cout << ch;
}
OpenFile.close();
}