Answers for "file operations in python"

2

how to open a file in python

open("filename" , "mode")
# do whatever you want to do!!
Posted by: Guest on August-24-2020
0

file methods in python

file = open(filename, filemode)
file.readable()
file.writable()
file.read()
file.readlines()
file.seek()
file.tell()
file.write()
file.close()
Posted by: Guest on September-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language