![]() This is also the default mode in which file is opened. If the file does not exists, raises I/O error. The handle is positioned at the beginning of the file. Read Only (‘r’) : Open text file for reading. ![]() File handle is like a cursor, which defines from where the data has to be read or written in the file. These modes also define the location of the File Handle in the file. It refers to how the file will be used once its opened. ![]() In this article, we will be focusing on opening, closing, reading, and writing data in a text file.Īccess modes govern the type of operations possible in the opened file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |