Using file functions
Delete a file and return True if success
file.remove("filename")
Select a file using open file dialog
file.choose()
Display contents of a file
file.show("filename")
Check whether a file exists and return True if found
file.exists("filename")
Copy file from source to target
file.copy("source","target")
Rename a file
file.rename("oldname","newname")
Getting file or directory information
file.info("file or dir name")
Get file Size in bytes
file.size("filename")
file.remove("filename")
Select a file using open file dialog
file.choose()
Display contents of a file
file.show("filename")
Check whether a file exists and return True if found
file.exists("filename")
Copy file from source to target
file.copy("source","target")
Rename a file
file.rename("oldname","newname")
Getting file or directory information
file.info("file or dir name")
Get file Size in bytes
file.size("filename")
Comments
Post a Comment