Getting started with files - English

Play
Current Time 0:00
/
Duration Time 0:00
Remaining Time -0:00
Loaded: 0%
Progress: 0%
0:00
Fullscreen
00:00
Mute
Captions
  • captions off
  • English

24830 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