int main () { ifstream file ("C:\\Users\\filetypes.txt", ios::in|ios::binary|ios::ate); if (file.is_open()) { size = file.tellg(); memblock = new char [size]; file.read (memblock, size); cout << "the complete file content is in memory"; for (int l=0; l<size;> { cout << " memblock[] is = " << (unsigned char)memblock[l] << " index was l = " << l << endl; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)