Read and Write Files in Python Open a File in read+ mode(Opens file for reading and writing) target=open('filename.txt','r+') Print the file content print target.read() Write content into the filename target.write("I m writing into the file \n")