For example, there are several text files in a certain folder. I want to extract the first two lines of these text files and combine them to change the names of the text files. I don't know how to do it.
For example, there is this file
Moshidou.txt
The content of the file is as follows
There are 4 half-width characters in front of the file, but since it will be deformed here, two full-width characters are used instead
Now I want to extract the first line and the second line of the file and combine them into the form "《Moshidou》Author: Xu Qifeng.txt". I don't know if it can be done. Thank you
For example, there is this file
Moshidou.txt
The content of the file is as follows
Moshidou
Author: Xu Qifeng
【Content Introduction】
Zhang Rufei, who is proficient in martial arts, accidentally came into contact with an unidentified flying object from planet K after a drunk, and accidentally obtained six pills with the effect of "the six stars of the Southern Dipper master life". These pills can bring back to life people who have died from accidental injuries and quickly restore them to the state before death.
From then on, Zhang Rufei embarked on an extraordinary path.
There are 4 half-width characters in front of the file, but since it will be deformed here, two full-width characters are used instead
Now I want to extract the first line and the second line of the file and combine them into the form "《Moshidou》Author: Xu Qifeng.txt". I don't know if it can be done. Thank you
