Getting started with files - English

22912 visits



Outline:

Open a file Open() function Different Modes of opening a file Read() method Read the content of the file line by line Read the entire content of the file Append the lines of a file to a list Close a file Demonstration using a txt file Splitlines() method