Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Java
9.4K+ articles
Misc
7.7K+ articles
Mathematics
5.6K+ articles
Python fileinput-library
6 posts
Recent Articles
Popular Articles
Reading binary files in Python
Last Updated: 23 July 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
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
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.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.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.input() in Python
Last Updated: 18 April 2026
The fileinput.input() function in Python is used to read lines from one or multiple files. It returns an iterable object that allows to process file content line by line. ...
read more
Python
Python fileinput-library