我有一个巨大的文件,我想从中读取前 3 行并将它们放在另一个文件new.txt中。之后,再读3行,但不要从头开始,应该从第4行开始读3行。
1st line
2nd line
3rd line
4th line
5th line
6th line
7th line
8th line
9th line
10th line
....
文件 new.txt 中的第一个输出将是:
1st line
2nd line
3rd line
文件 new.txt 中的第二个输出将是:
4th line
5th line
6th line