Scrivere su txt c+++ 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();
}