Types of Files in Python:-
1. In general, there are two types of files: text and binary.
2. A text file contains data that has been encoded as text, using a scheme such as ASCII or Unicode. Even if the file contains numbers, those numbers are stored in the file as a series of characters. As a result, the file may be opened and viewed in a text editor such as Notepad.
3. A binary file contains data that has not been converted to text. As a consequence, you cannot view the contents of a binary file with a text editor.
4. Although Python allows you to work both text files and binary files.


LinkBack URL
About LinkBacks
Reply With Quote

LinkBacks Enabled by vBSEO
Bookmarks