Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.3k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.7k+ articles
JavaScript
11.5k+ articles
Java
10.1k+ articles
Mathematical
7.7k+ articles
Python file-handling-programs
82 articles
Python fileinput-library
6 posts
Popular Articles
Recent Articles
Reading binary files in Python
Last Updated: 19 December 2024
Reading binary files means reading data that is stored in a binary format, which is not human-readable. Unlike text files, which store data
...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 fal
...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
...read more
Python
Python fileinput-library
Similar Topics
Web Technologies
40.3k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.7k+ articles
JavaScript
11.5k+ articles
Java
10.1k+ articles
Mathematical
7.7k+ articles
Python file-handling-programs
82+ articles
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 usi
...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() met
...read more
Python
Python fileinput-library
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
...read more
Python
Python fileinput-library
1
1
1
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 !