Describe the difference between text files and ...
Describe the difference between text files and binary files, providing examples of each.
Loading lesson…
Text files contain human-readable characters and are typically used to store plain text data. Examples include documents (like .txt files), source code files (like .cpp or .java files), and configuration files (like .ini files). Binary files, on the other hand, store non-textual data in a format that's not directly human-readable. Examples of binary files include image files (like .jpg or .png files), audio files (like .mp3 files), and compiled program files (like .exe files). Binary files can contain encoded data or machine code instructions.