For example, assume that file.txt has the following content:

Your script should output the tenth line, which is:

这是我第一个想到的方法: