Due to ios::trunc mode, the file is truncated to zero length - File Handling

Q.  Due to ios::trunc mode, the file is truncated to zero length.
- Published on 17 Jul 15

a. True
b. False

ANSWER: True
 

    Discussion

  • Brijesh   -Posted on 06 Oct 15
    If the file is already exist and you want to open it for output operation then its previous content will be deleted

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)