Computer Science for IGCSE & O level - Programming (Section 13 - No. 35)

What does the `open()` function typically return when successful?
The filename as a string
The file contents
A file object
A boolean value

Explanation

The open() function returns a file object that is used to perform operations on the file.

Comments (0)

Advertisement