im triying to iterate a file and start the loop in the second item of the list.
file = open(filename, 'r', encoding='iso-8859-1')
for line in file:
# here i want to start the for in the second row
line = line.strip('\n')
Any tips?
I tried doing:
start_row = 2
end_row = 10
file = open(filename, 'r', encoding='iso-8859-1')
for line in file[start_row:end_row]:
# here i want to start the for in the second row
line = line.strip('\n')
But i cant index a IOTextWrapper.