open_file()
file_open()
open()
read_file()
close_file()
file_close()
close()
end_file()
Read mode
Write mode
Append mode
Binary mode
read()
readline()
readlines()
load()
write()
append()
add()
insert()
file_exists()
exists_file()
os.path.exists()
check_file()
Use multiple write() statements.
Use writelines() method.
Use writeLine() method.
Use append() method.
os
fileutils
filesystem
io
Comma Space Value
Comma Separated Value
Common spaced Value
Compact Structure View
End of List
End of Line
End of Loop
End of Language
f.read(5)
f.read()=5
f.readline(5)
f.readlines(5)
Tells you the current position within the file.
Tells the size of file you read
Tells the start position of the file.
Tells the end position of the file.
csv.reader(file)
csv.read(file)
csv.readcsv(file)
csv.readcsvdata(file)
Read two words from file
Read two line from file
Read two character / two bytes
count the number of '2' in file
r
rb
w
r+
file_object=open(file_name,mode)
open(file_object,file_name,mode)
file_open(file_object,file_name,mode)
file_object=file_open(file_name,mode)
ab
rw
w+
giga bytes
mega bytes
byte
bits
It is used for object serialization
It is used for object de-serialization
change the string value to number
extract the list element in simple variable
sets the file's current position at the offset
sets the file's previous position at the offset
sets the file's current position within the file
None of these