![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I am traying to open a huge file, just I want to open it. This is the code that I am using. I am using Visual C++ 6.0 compiler. main() { char *path1= "C:\\Reconstruction\\quad_HIDAC_data\\Test_File.ls t"; char buffer[1024]; fstream fin; // object from fstream class //ftream output; fin.open(path1,ios::binary,ios::in); if(!fin.is_open()) { cout << "Fail...."; return 0; } else { for(long x = 0; x < 20000; x++ ) { fin.read(buffer,1024); } fin.close(); } } *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#3
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |