DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
get first line of file python
with open('myfile.txt') as f: first_line = f.readline()
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#line
#file
#python
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit