(Part 5 of my Programming Concepts series)
File extensions are the letters after the dot in computer file names. For instance, you may have a text document you’ve named “GroceryList” and so the full file name would be “GroceryList.txt”. That last part of the file name, the ‘.txt‘ is the file extension. When you open and save a document in a word processor (like Microsoft Word, OpenOffice Writer, WPS Office Writer, TextEditor, Wordpad, or Notepad), you’re creating a text document (or a text file). These documents have file extensions like “.txt”, “.doc”, “.docx”, “.rtf”, “.odt” or something like that. These extensions are abbreviations that indicate the file type, (or the file format) which tells the computer how it should interpret and open these files. When you try to open a “.docx” file, your computer may already know it should use Microsoft Word, or when you open a “.txt” file it may use Notepad.
You can find full exhaustive lists of these file extensions online with a quick Google search, or more specific lists of programming related file extensions with a little more digging. Though, normally a programmer will only really need to remember a handful of these when working on a given project or programming discipline. Often, the tools that programmers use to create source code will automatically recognize and include the file extension to save them appropriately for the programmer. Still, it’s very important for the programmer to be generally aware of the different types of source code and other files they may work with and their associated file extensions.
Next we’ll explore some general ideas about what Programming Languages are and touch on the idea of Syntax…