#12 Opening a file using with clause | Data File Handling | Class 12 CBSE Computer Science

Опубликовано: 01 Июнь 2026
на канале: Urja Academy
1,332
31

Welcome to the Part 12 of the Chapter data file handling in python for class XII ( 12 ) CBSE Computer Science .

In this video I have discussed one of the methods for opening files , i.e opening a file using with clause .

If you haven't watched the other parts of this Chapter , you may watch them by clicking on the links below 👇:

👉 Part 1 Introduction to Data file handling in python
   • #1 Introduction to Data File Handling in P...  

👉 Part 2 Introduction to text files in python
   • #2 Introduction to Text Files | File Handl...  

👉 Part 3 Reading data from text files in python
   • #3 Reading Data From Text Files | File Han...  

👉 Part 4 Writing and appending data into text files in python
   • #4 Writing and Appending Data into Text Fi...  

👉 Part 5 Data Manipulation in text files in python
   • #5 Data Manipulation in Text Files | File ...  

👉 Part 6 Reading and Writing data into csv files in python
   • #6 Reading and Writing data into CSV files...  

👉 Part 7 Reading and Writing data into binary files in python
   • #7 Reading and Writing Into Binary Files i...  

👉 Part 8 Searching data from binary files in python
   • #8 Searching Data from Binary Files in Pyt...  

👉 Part 9 Data Updation in binary files in python
   • #9 Data Updation in Binary Files in Python...  

👉 Part 10 Appending data into binary files in python
   • #10 Appending data into Binary Files in Py...  

👉 Part 11 seek() and tell() in python
   • #11 seek( ) and tell( ) in python | Data F...  

Topics:
Concept of opening files
opening a file using open()
opening a file using with clause
practical program of opening files using open()
practical program of opening files using with clause

While implementing the practical programs in Python , I have used IDLE on MacOS . You can use any other IDE of your choice.


Connect on these social media Handles:

👉 Instagram:   / bhargab_kakati  

👉 LinkedIn :   / bhargabkakati  

👉 Twitter :   / bhargab008  

👉 Website : https://urjaacademy.winuall.com/

Bhargab Kakati
PGT(Computer Science)

data file handling in python class 12
opening files using with clause
#Python #FileHandling #Class12 #computerscienceclass12