Skip to content

Tag Archives: python-file-handling

Python allows users to handle files (read, write, save and delete files and many more). Because of Python, it is very easy for us to… Read More
When we no longer require data, we usually prefer to erase or delete it so that space can be used up by other data that… Read More
Python too supports file handling and allows users to handle files i.e., to read and write files, along with many other file handling options, to… Read More
Given a text file. The task is to read the text from the file character by character.Function used:  Syntax: file.read(length)Parameters: An integer value specified the… Read More
Given a text file. The task is to reverse as well as stores the content from an input file to an output file. This reversing can… Read More
Given a text file of key-value pairs. The task is to count the number of occurrences of the key-value pairs in the file. Examples: Input… Read More
Given a binary file that contains some sentences (space separated words), let’s write a Python program to modify or alter any particular word of the… Read More
Filecmp module in Python provides functions to compare files and directories. This module comes under Python’s standard utility modules. This module also consider the properties… Read More
Glob is a general term used to define techniques to match specified patterns according to rules related to Unix shell. Linux and Unix systems and… Read More
The concept of file handling is used to preserve the data or information generated after running the program. Like other programming languages like C, C++,… Read More
The full form of JSON is Javascript Object Notation. It means that a script (executable) file which is made of text in a programming language,… Read More
os.walk() method of the OS module can be used for listing out all the directories. This method basically generates the file names in the directory… Read More
HDF5 file stands for Hierarchical Data Format 5. It is an open-source file which comes in handy to store large amount of data. As the… Read More
Python too supports file handling and allows users to handle files i.e., to read, write, create, delete and move files, along with many other file… Read More
The OS module in Python is used for interacting with the operating system. This module comes under Python’s standard utility module so there is no… Read More