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?

  1. A.

    OPEN_ALWAYS | GENERIC_READ

  2. B.

    TRUNCATE_EXISTING | GENERIC_WRITE

  3. C.

    CREATE_ALWAYS | GENERIC_WRITE, then move the pointer to start

  4. D.

    OPEN_EXISTING | GENERIC_WRITE, then move pointer to end

Attempted by 6 students.

Sign up free to check your answer

Sign up free

Explore the full course: Up Police Computer Operator

Loading lesson…