12th Class Computers Science Sample Paper File Handling - Sample Paper-1

  • question_answer
    The ................. method of a fife object flushes any unwritten Information and closes the file object, after which no more writing can be done.

    A) flush()   

    B) close()

    C) write()               

    D) read()

    Correct Answer: B

    Solution :

    [b] The close() method of a file object flushes any unwritten information and closes the file object after which no more writing can be done. If you want to write data again into the file then you should open the file again using open().


You need to login to perform this action.
You will be redirected in 3 sec spinner