Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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();
}
Source by www.mrwebmaster.it #
 
PREVIOUS NEXT
Tagged: #lettura #file
ADD COMMENT
Topic
Name
9+3 =