0% found this document useful (0 votes)
49 views

File Handling in Python

File handling allows us to permanently store data on storage devices in different file types. Text files store information as characters terminated by EOL and have a .txt extension, while binary files contain non-text data like images or programs. File handling is necessary to retrieve stored data in different formats for future use.

Uploaded by

PawanKumar
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

File Handling in Python

File handling allows us to permanently store data on storage devices in different file types. Text files store information as characters terminated by EOL and have a .txt extension, while binary files contain non-text data like images or programs. File handling is necessary to retrieve stored data in different formats for future use.

Uploaded by

PawanKumar
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 4

FILE

HANDLING
Why we need of File Handling?
• A file in itself is a bunch of bytes
stored on some storage devices.
• File helps us to store the data
permanently, which can be retrieved
for future use.
Types of Files
Binary
Text Files
Files

CSV Files
Text Files
• Stores information in ASCII or Unicode
characters.
• Each line of text is terminated with a
special character known as EOL (End of
Line)
• Extension for text file is .txt
• Default mode of file.

You might also like