DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
read each line of file
# Using readlines() file1 = open('myfile.txt', 'r') Lines = file1.readlines()
Source by www.geeksforgeeks.org #
PREVIOUS
NEXT
Tagged:
#read
#line
#file
ADD COMMENT
Topic
COMMENT
Name
7+8 =
Submit