Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write_file_flag = WriteFile(
- hFile, // open file handle
- random_int_array, // start of data to write
- cnt * sizeof(int), // number of bytes to write
- &written_bytes, // number of bytes that were written
- NULL); // no overlapped structure
- if(!write_file_flag){
- cout << "Couldn't write file." << endl;
- }
- else{
- cout << "Saved " << written_bytes << " out of " << cnt*sizeof(int) << " bytes." << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement