Greetings!
Can anyone please educate me about this topic?
I was wondering, how do people come out with extension files such as .doc, .mp3, or let's start with .txt first. How can I do that? Can anyone please provide me with a rough idea?
Thanks.

as a programmer you choose what extension you want to use when you create the file.

ex

//using fstream.h
ofstream newFile("myFile.ext"); // EXT being the extension I made up

Now it is your choice to inform the OS of the new ext so that in the Folder View Options it will be identified to be associated with your program. this can be done by addign entries in the windows registry automatically through your program.

That's about it, if your program becomes popular, so will the extensions. usually extensions are compressions or some sort of special algorithm that is effecient enough so that other programs would want to take advantage of their effeciency. Thats how an extension by it's self would become popular.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.