icodice:string testo; testo=file; ifstream is; is.open (testo.c_str(), ios::binary ); is.seekg (0, ios::end); length_app = is.tellg(); is.seekg (0, ios::beg); buffer_app = new char [length_app]; is.read (buffer_app,length_app); is.close();
icodice:string testo; testo=file; ifstream is; is.open (testo.c_str(), ios::binary ); is.seekg (0, ios::end); length_app = is.tellg(); is.seekg (0, ios::beg); buffer_app = new char [length_app]; is.read (buffer_app,length_app); is.close();