Tuesday 21 September 2021

Python: file programs

      Python: Create empty file
      Python: file access modes
      Python: r vs r+ mode
      Python: r+ and w+ modes
      Python: Create empty text file
      Python: Create and write content to a file
      Python: Count number of lines in a file
      Python: Read the file content line by line
      Python: list all the files, folders in a directory
      Python: Read specific line from a text file
      Python: Read specific lines in a file
      Python: remove: delete a file
       Python: rmdir: Delete a directory
      Python: rmtree: Delete a directory with content
      Python: Move file from one directory to other directory
      Python: Get file size
      Python: Get the extension of a file
      Python: Create a directory
      
      

Previous                                                    Next                                                    Home

No comments:

Post a Comment