To write data to the end of a file using WriteFile() without truncating its…
BEL Probationary Engineer 2025
To write data to the end of a file using WriteFile() without truncating its contents, the file should be opened with which configuration?
- A.
OPEN_ALWAYS | GENERIC_READ
- B.
TRUNCATE_EXISTING | GENERIC_WRITE
- C.
CREATE_ALWAYS | GENERIC_WRITE, then move the pointer to start
- D.
OPEN_EXISTING | GENERIC_WRITE, then move pointer to end
Attempted by 6 students.
Sign up free to check your answer
Sign up freeLoading lesson…

