Till now, we were taking the input from the console and writing it back to the console to interact with the user. Sometimes, it is not enough to only display the data on the console. It is impossible to recover the programmatically generated data again and again. The file handling plays an important role when the data needs to be stored permanently in the file. A file is a named location on a disk to store related information. We can access the stored information after the program termination.
Exericses:-
- Write a py program to create a file.
- Write a py program to write some content in the file.
- Write a py program to read the data of a file.
- Write a py program to delete a file.
- Write a py program to demonstrate the append functionality in file handling.
- Write a py program to perform write and read operation in single file.
- Write a py program to create a CSV file.
- Write a py program to write data in a CSV file.
- Write a py program to read data from a CSV file.
- Write a py program to perform write and read operation in a CSV file.
Comments
Post a Comment