open() as it name implies used to open a data file in a program through file object and close() is used to close() the link of file object and data file. Once data file is closed, no operation can be performed.
open() as it name implies used to open a data file in a program through file object and close() is used to close() the link of file object and data file. Once data file is closed, no operation can be performed.