We can perform the following basic operations of files.
Naming a file
Opening a file
Reading data from a file
Writing data to a file
Closing a file
The filename is a string of characters that make up a valid file name for the operating system. It may contain two parts, a primary name and an optional period with extension
Example:
sample.doc
Opening a file using constructor
Opening files using open()
No comments:
Post a Comment