Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Python
21.3K+ articles
Python Programs
4.0K+ articles
python-utility
680+ articles
python-modules
399+ articles
python-os-module
224+ articles
Python file-handling-programs
82+ articles
Python OS-path-module
32+ articles
Python os-module-programs
28+ articles
Python directory-program
26+ articles
python-file-handling
124+ posts
Recent Articles
Popular Articles
Check if a File Exists in Python
Last Updated: 27 November 2024
When working with files in Python, we often need to check if a file exists before performing any operations like reading or writing. by using some simple methods we can ch...
read more
Python
Python Programs
python-file-handling
How to Fix "EOFError: EOF when reading a line" in Python
Last Updated: 13 June 2024
The EOFError: EOF when reading a line error occurs in Python when the input() function hits an "end of file" condition (EOF) without reading any data. This is common in th...
read more
Python
python-file-handling
Python How-to-fix
Python Program to Safely Create a Nested Directory
Last Updated: 18 April 2024
Creating a nested directory in Python involves ensuring that the directory is created safely, without overwriting existing directories or causing errors. To create a neste...
read more
Python
Python Programs
Picked
python-file-handling
Finding Md5 of Files Recursively in Directory in Python
Last Updated: 18 April 2024
MD5 stands for Message Digest Algorithm 5, it is a cryptographic hash function that takes input(or message) of any length and produces its 128-bit(16-byte) hash value whic...
read more
Python
Python Programs
Picked
python-file-handling
How to Change the Owner of a Directory Using Python
Last Updated: 08 April 2024
We can change who owns a file or directory by using the pwd, grp, and os modules. The uid module is used to change the owner, get the group ID from the group name string, ...
read more
Python
Python Programs
Picked
python-file-handling
linux
File Mode in Python
Last Updated: 04 April 2024
In Python, the file mode specifies the purpose and the operations that can be performed on a file when it is opened. When you open a file using the open() function, you ca...
read more
Python
Picked
python-file-handling
File Locking in Python
Last Updated: 29 March 2024
File locking in Python is a technique used to control access to a file by multiple processes or threads. In this article, we will see some generally used methods of file l...
read more
Python
Python Programs
Picked
python-file-handling
How to Upload Files Using Python Requests Library
Last Updated: 27 March 2024
We are given some files and our task is to upload it using request library of Python. In this article, we're going to discover a way to use the requests library to add fil...
read more
Python
Picked
python-file-handling
Python-requests
Serialize and Deserialize an Open File Object in Python
Last Updated: 22 March 2024
Serialization refers to the process of converting an object into a format that can be easily stored or transmitted, such as a byte stream. Deserialization, on the other ha...
read more
Python
Python Programs
Picked
python-file-handling
Python-json
File Versioning in Python
Last Updated: 22 March 2024
In Python, the term "file versioning" usually refers to the process of keeping track of several file versions, frequently recording changes, preserving the past, and promo...
read more
Python
Python Programs
Picked
python-file-handling
Python file-handling-programs
How to Call the main() Function of an Imported Module in Python
Last Updated: 22 March 2024
We are given an imported module and our task is to call the main() function of that module after importing it in Python. In this article, we will see how to call the main(...
read more
Python
Python Programs
Picked
python-file-handling
How Can I Make One Python File Run Another File?
Last Updated: 20 March 2024
In Python programming, there often arises the need to execute one Python file from within another. This could be for modularity, reusability, or simply for the sake of org...
read more
Python
Python Programs
python-basics
Picked
python-file-handling
Python directory-program
Parse and Clean Log Files in Python
Last Updated: 20 March 2024
Log files are essential for comprehending how software systems behave and function. However, because log files are unstructured, parsing and cleaning them can be difficult...
read more
Python
Python Programs
python-regex
Picked
python-file-handling
How to Import Other Python Files?
Last Updated: 19 March 2024
We have a task of how to import other Python Files. In this article, we will see how to import other Python Files. Python's modular and reusable nature is one of its stren...
read more
Python
Python Programs
Picked
python-file-handling
File System Manipulation in Python
Last Updated: 19 March 2024
File system manipulation in Python refers to the ability to perform various operations on files, such as creating, reading, writing, appending, renaming, and deleting. Pyt...
read more
Python
Python Programs
Picked
python-file-handling
1
2
3
4
5
6
7
8
9
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !