- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Sarika Singh has Published 72 Articles
Sarika Singh
21K+ Views
Python has built-in functions for creating, reading, and writing files, among other file operations. Normal text files and binary files are the two basic file types that Python can handle. We'll look at how to write content into text files in Python in this article. Steps involved writing multiple lines ... Read More
Sarika Singh
8K+ Views
Directories and files can be deleted using Python's built-in modules and functions. Removing files or directories is a significant process since, after you've destroyed a directory, it's difficult to get its contents back. Therefore, users can remove the directory and its contents without much difficulty by applying a few useful ... Read More
Sarika Singh
2K+ Views
The purpose of internal buffers, which are created by the runtime, library, and programming language that you're using, is to speed up operations by preventing system calls on every write. Instead, when writing to a file object, you write into its buffer, and when the buffer is full, system functions ... Read More
Sarika Singh
13K+ Views
On a multiuser operating system, a home directory is a file system location that holds the files specific to a particular user. A login directory is another name for a home directory.You may obtain the home directory using Python in a number of ways. Using os module The os.path.expanduser() function ... Read More
Sarika Singh
277 Views
The file truncate() method is quite effective. The first reason it is referred to as a method rather than a function is that it comprises the file name (i.e., the object of the file) and a dot operator in addition to other factors (i.e. object of file). Truncation means cutting ... Read More
Sarika Singh
12K+ Views
There are various ways to read files in Python. The most common methods for reading files line by line in Python will be covered. Using readlines() Method Using this method, a file will be opened and its contents will be divided into separate lines. A list of every line in ... Read More
Sarika Singh
521 Views
This Python article will teach you how to recursively remove all files in a folder that have a particular extension. The application will remove all files with the supplied extension inside the folder when we give it the folder path and file extension. Example - using file.endswith() method The steps ... Read More
Sarika Singh
9K+ Views
This tutorial looks at various Python comparison techniques for two files. We'll go over how to perform this typical work by using the available modules, reading two files, and comparing them line by line. In Python, comparing two files can be done in a variety of ways. Comparing Two Text ... Read More
Sarika Singh
2K+ Views
Open(), a built-in function in Python, opens a file and returns a file object. Methods and properties in file objects can be used to gather data about the file you opened. They may also be used to modify the mentioned file. Open a file Two arguments are required for this ... Read More
Sarika Singh
4K+ Views
An operating system like Microsoft Windows uses a file extension as a suffix to the name of a computer file. It falls under the category of metadata. An operating system's understanding of a file's attributes and, to some extent, its desired usage is supported by the file extension. We could ... Read More
To Continue Learning Please Login
Login with Google