open(filename,'r') 'r' read mode ,'w' write mode ,'a' append mode

read() return a string object of the byte have been read, will read until the end of the file

readline() read one line at a time

readlines() return a list of strings of the file context

write()

results matching ""

    No results matching ""