try
/echo -a $read(file.txt,s,"50479")
instead of
/echo -a $read(file.txt,S,"50479")

if it doesn't work maybe is a problem of "" in "50479"...