#to view the content in the empty txt =open('empty txt',' 'print( read() close(outputi am writing data into the empty text file #write program to write data into existing file demo txt =open("demo txt",' ' write(" am overwriting the existing content" close(#to view the content in the demo txt =open("demo txt",' 'print( read()outputi am overwriting the existing content write program to append data in empty txt =open("empty txt",' ' write("python is very easy" close(#to view the content in the empty txt =open("empty txt",' 'print( read()outputi am writing data into the empty text file python is very easy methods() )tell():returns current file location syntaxfilepointer tell(egf=open('demo txt',' 'print( read()print( tell()print( read( ) close( )seek()changes the filepointer position to offset bytes syntax:filepointer seek(offset,from(optional)egfseek( #filepointer moves by position fseek( , #moving filepointer by position from begin of file fseek( , #moving filepointer by position from current position seek( , #moving filepointer by position from end of file )read( )readline(bv prasanthi,dept of cse page