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
PREVIOUS
NEXT
Tagged:
#readline
#python
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit