DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python readlines end of file
with open('somefile') as openfileobject: for line in openfileobject: do_something()
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#readlines
#file
ADD COMMENT
Topic
COMMENT
Name
3+1 =
Submit