in reply to How to check if a file has more than one line?
What have you tried? Do you know how to open a file and read from it - see open if not?
Checking for more than 1 line should be as simple as reading two lines and checking that you got the second (for an empty file you don't get the first either, but for your purpose you can ignore than and just take note of success with the second read).
When you have some code to show report back for comment.
|
|---|