When using $read, you can specify which line you want to read by using $read(<filename>,<line_number>)
Using $read(<filename>) will read a random line from the file, not necessarily the first.
You can use $lines(<filename>) to return the total number of lines in the file.