$read(file.txt,w,* $+ $1 $+ *) will return the first line that has $1 in it in file.txt.