handle after brief introduction to file formatswe'll go through how to openreadand write text file in python what is filea file is simply resource for storing information on computer files are stored in directories on hard driveand because they retain their data after the computer is shut downthey are persistent storage mechanisminstead of temporary storage such as ram file can contain any kind of data files are normally used to store data and information likeconfiguration settings of program simple data such as contact names against the phone numbers imagespicturesphotosetc file formats support by python python is super accommodating and canwith relative easehandle number of different file formatsincluding but not limited to the followingtxtplain text file(txt filestores data that represents only characters (or stringsand excludes any structured metadata csvcomma-separated values file uses commas (or other delimitersto structure stored dataallowing data to be saved in table format htmlhypertext markup language file stores structured data and is commonly used with most websites jsonjavascript object notation is simple and efficient formatmaking it one of the most commonly used formats to store and transfer data in this unitwe will focus on the txt file format file operations python handles file using set of in-built functions some of the functions areopen(and close()read()readline(and many more some of the basic operations for file handling are given below opening file working with file readwrite and append closing file opening file the text file is sequence of characters stored on permanent medium like hard driveflash memoryor cd-rom page