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

Index

The document outlines a comprehensive guide on file handling in Python, covering the purpose, types, and operations on files, including read and write operations. It also discusses object serialization with the pickle module, CSV file operations, and OS-based operations. Programming examples are provided throughout to illustrate the concepts.

Uploaded by

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

Index

The document outlines a comprehensive guide on file handling in Python, covering the purpose, types, and operations on files, including read and write operations. It also discusses object serialization with the pickle module, CSV file operations, and OS-based operations. Programming examples are provided throughout to illustrate the concepts.

Uploaded by

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

========================================================

Files in Python-----4 days


========================================================
Index
-----------------------------------------------------------------------------------
------
=>Purpose of Files
=>Types of Applications in Files
a) Non-Persistant Applications
b) Persistant Applications
=>Definition of Files
=>Operations on Files
a) Write Operation with Steps
b) Read Operation with Steps
=>Types of Files
=>File Opening Modes
a) r b) w c) a
d) r+ e) w+ f) a+ g) x h) x+
=>Syntax for Opening the Files
a) By using Open()
b) By using " with open() as "
=>Programming Examples.
-----------------------------------------------------------------------------------
------
=>Pickling(Object Serialization) and Un-Pickling(Object De-Serialization) Concept
=>pickle module
=>Implementation (steps) of Pickling and Un-Pickling Concept
=>Programming Examples
-----------------------------------------------------------------------------------
-------
=>Working with CSV Files
=>csv module
=>CSV File Operations
a) read operation with csv.reader()
b) write operation with csv.writer()
c) Dict Read Operation with csv.DictReader()
d) Write Operation with csv.DictWriter()
=>Programming Examples
-----------------------------------------------------------------------------------
---------
=>Working with OS Based Operations
=>os module
=>Programming Examples
====================================x======================================

You might also like