We create the text files using an extension .txt with the help of a simple text editor. The binary files store info and data in the binary format of 0’s and 1’s (the binary number system). The binary files are created with the extension .bin in a program, and it overcomes the drawback of the text files in a program.