Is it possible to read in from a text file a set line range for example from line 20 to 52?
I am opening the file and reading the file like this:
text_file = open(file_to_save, "r")
line = text_file.readline()
but only want to save the data in a set range or if it possible to read in from a after a line containing --- data --- to another line containing -- end of data --
I have looked through the documentation and online examples and can only find examples that specify a new line or something
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…