Dear friends,

I have a file named "in.txt" with following data:

10
20
30
40


and now I want to store the first line of this file which is "10" in a variable of type integer. would you please help with this? so that after running the program lets say variable "nFirst" equals to "10".

Regrads.