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.

     

                                                                                                                       


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad