Differentiate between read() and readline().
Question :
Differentiate between read() and readline().
read() function reads the entire file and returns a string.
readline() function reads lines from that file and returns as a string. It fetches the line n, if it is being called nth time.