I have different txt files (unknown file numbers), I would like to load them and read only the first line of each text file and then save them to a string.
The first line of each file is only a number such as:
So, I wanna load them and put all the first lines to one string like this:
1 is the first line of test1.txt
3 is the first line of test2.txt
4 is the first line of test3.txt
Thanks in advance