Difference in read(), readline() and readlines() in Python
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
read(), readline() and readlines() in Python
read(): to read total data from a file.
readline(): to read ‘n’ character from the file.
readlines(): to read all lines into a list.