Search
 
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
Name
7+8 =