DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
readline python
file = open('./yourfile.txt') print(file.readline()) #Read and print first line of yourfile.txt
Source by www.programiz.com #
PREVIOUS
NEXT
Tagged:
#readline
#python
ADD COMMENT
Topic
COMMENT
Name
6+3 =
Submit