You want something like the equivalent of sh, ksh or bash:-
while read line
do
...whatever
done < file
Why write in csh? It has all sorts of issues, limitations and confusions - oh and it lets you use goto which creates a nightmare when you try to dismantle the logic later on.