MCQs > IT & Programming > System Programming > Effect of executing the following system call on the file ''test.txt''?

System Programming MCQs

What is the effect of executing the following system call on the file "test.txt"?

open("test.txt", O_TRUNC)


Answer

Correct Answer:

If test.txt exists, the file is truncated to 0 bytes before returning.    

Explanation:

Note: This Question is unanswered, help us to find answer for this one

System Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

System Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it