How to read from a file in C shell?

Hi All,
I want to read some number from a file into a variable in C shell as follows.

I know that the syntax in ksh is

read x < file name

I dont know what's the equivalent for this in C Shell

Can some one pls. help me out?

Thanks in advance
raju

Isn't it the same? I was under the impression that the read statement didn't differ from any of the various shells.

Believe it or not, csh cannot read from a file. See question 1b here.

You will need to do something like:

set x=`cat y`