Skip to content

Tag Archives: python-file-handling

In this article, we’ll learn how to use Python to determine whether a string is present in a PDF file. In Python, strings are essential… Read More
In this article, we will discuss finding unique lines from two text files and storing them using Python. To understand the concept we will take… Read More
In this article, we will understand how to retrieve sorted file names from a directory using Python. For this, we would make use of the Python glob… Read More
In this article, we will see how to take input from users and store it in a .txt file in Python. To do this we… Read More
In this article, we will learn how to change the case of all characters present in a text file using Python. We will use Python… Read More
In this article, we are going to see how to read text files into lists in Python. File for demonstration: Example 1: Converting a text… Read More
In this article, we will code a python script to find duplicate files in the file system or inside a particular folder.  Method 1: Using… Read More
In this article, we are going to write a Python program to copy all the content of one file to another file in uppercase. In… Read More
In this article, we will discuss how to read TSV files in Python. Input Data: We will be using the same input file in all… Read More
The with keyword in Python is used as a context manager. As in any programming language, the usage of resources like file operations or database… Read More
In this article, we are going to see how to delete the specific lines from a file using Python Throughout this program, as an example,… Read More
Sometimes it becomes tough to remove brackets from the text file which is unnecessary to us. Hence, python can do this for us. In python,… Read More
Python language has great uses today in almost every field, it can be used along with other technologies to make our lives easier. One such… Read More
Getting a filename from Python using a path is a complex process. i.e, In Linux or Mac OS, use “/” as separators of the directory… Read More
A directory is capable of storing multiple files and python can support a mechanism to loop over them. In this article, we will see different… Read More

Start Your Coding Journey Now!