please help me in file handling

sir i have to get first line from a file
for example

>cat file1
abc
zxc
asd
adsf

from that file1 i need only first line

expected result
>abc

please help me !

Check out the man page for head.