Tutorials
Courses
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
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Python fileinput-library
6 posts
Recent Articles
Popular Articles
fileinput.input() in Python
Last Updated: 29 December 2023
With the help of fileinput.input() method, we can get the file as input and can be used to update and append the data in the file by using fileinput.input() method. Pyth...
read more
Python
Python fileinput-library
fileinput.filename() in Python
Last Updated: 22 April 2020
With the help of fileinput.filename() method, we can get the last used file name which we have used so far by using fileinput.filename() method.Syntax : fileinput.filenam...
read more
Python
Python fileinput-library
fileinput.lineno() in Python
Last Updated: 22 April 2020
With the help of fileinput.lineno() method, we can get the line number for every line on line read from input file by using fileinput.lineno() method.Syntax : fileinput.l...
read more
Python
Python fileinput-library
fileinput.filelineno() in Python
Last Updated: 22 April 2020
With the help of fileinput.filelineno() method, we can get the line number for every line on line read for every file from input file by using fileinput.filelineno() metho...
read more
Python
Python fileinput-library
fileinput.isfirstline() in Python
Last Updated: 22 April 2020
With the help of fileinput.isfirstline() method, we can get the boolean value as True if line read from the file is very first line else false by using fileinput.isfirstli...
read more
Python
Python fileinput-library
Reading binary files in Python
Last Updated: 03 May 2025
Reading binary files means reading data that is stored in a binary format, which is not human-readable. Unlike text files, which store data as readable characters, binary ...
read more
Python
Picked
Python file-handling-programs
Python fileinput-library
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 !