Python interacts with files loaded in primary memory or main memory through “file handlers” ( This is how your operating system gives access to python to interact with the file you opened by searching the file in its memory if found it returns a file handler and then you can work with the file ). So when you need to change any text file or just to work with them in python you need to load that file into primary memory. Primary and Secondary memory every file that you saved or anyone saved is on secondary memory cause any data in primary memory is deleted when the computer is powered off. There are two kinds of memory in a computer i.e. The data being written will be inserted at the end, after the existing data. The handle is positioned at the end of the file. The file is created if it does not exist.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |