hi, I need to put in 'buffer' ALL content of a file. Is it possibile. Is this faster way to manage a file?
This below should reads 1000 char but I need to read until the EOF. Is there a way?
Qt Code:
  1. char* buffer=0;
  2. while ( ifile.get(buffer,1000) ) {
  3. cout << " buffer " << buffer << endl;
  4. }
To copy to clipboard, switch view to plain text mode