sorry, you can't open a file without a function.

anyway, instead of giving you the whole thing on silver platter I give you pointers.
for getting the line from the file you need to study open() and readline() (both are functions ) from manual.
for getting the correct line, you need somekinda comparison where instr() is a good and simple choice.
_________________________
!

download KiXnet