DS160123 extra session for file handling

Date:- 19/02/2023
Yesterday’s session about file handling discuss following topics:

  1. 3 modes of file handling
    (!) read - reading file data
    (!!) Write - Re-write content
    (!!!) append - appending content
  2. Step for file handling
    (!) open
    syntax is f=open(‘path.mode’)

    path is having two type
    * Relative path - file in the same folder
    * Absolute path - location, name of the file
    mode = by default is r (read)
    Read having 3 method

    • read(), * readline() *readlines()
1 Like

@sms18680
Nice :blush: keep it up