I need to access an ftp server from python, and download the first N rows of a specific text file.
I read about ftplib and function retrlines, but I didn't understand how to retrieve the first N lines only without downloading the entire file (However I wonder whether that is possible in the ftp protocol)