SD Card Module - Interface

Hi I am working on this project for school that requires data input from the user to display an output to the device I already have a membrane keypad for this function for Date and Time and Temperature but I would like to do one using an SD Card Module I have got one and an SD card but I was wondering if there was any way of calculating how many lines there are on the .txt file on the SD card then display each one of those lines after its done I want it to go back into the waiting for input loop. Any guides or ideas on how to achieve this?