Well if it's encrypted you have two choices
- fgetc, to read the file one byte at a time
- fread, to read a whole block of bytes at a time.

Having read some bytes, you then need to decrypt them in order to work out what the real data is, and where the lines are.