Professional Documents
Culture Documents
Lecture On Dealing With Files
Lecture On Dealing With Files
Lecture On Dealing With Files
let us consider that we have a file named check.txt saved in same directory as
python.
2. READLINE ( )
when we don’t want every word as a string but complete sentences in a
string of list we use read lines, it is used same as .read()
syntax: .readlines( )