IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
To/From Code
   ► KBTo/From GuidesReferenceTool Basics  Print This     

File Extensions (Cross Ref > Tool Basics)

File Extensions

Languages Focus

Common or primary file extensions used (not a complete list, just the basics).

Access VBA:   .MDB

  • .MDB - Access Database
  • .MDE - Protected Access Database

More Complete List:

File extensions changed from Access 2003 to 2007.

Microsoft Access 2003 and earlier primary file extensions:

  • .mdb - Access Database
  • .mde - Protected Access Database with compiled VBA

Microsoft Access 2007 primary file extensions:

  • .accdb - Access Database
  • .accde - Protected Access Database with compiled VBA

Other file extensions created by Access:

  • .adn - Access Blank Project Template
  • .adp - Access Project
  • .maf - Windows Shortcut: Access Form
  • .mam - Windows Shortcut: Access Macro
  • .maq - Windows Shortcut: Access Query
  • .mar - Windows Shortcut: Access Report
  • .mat - Windows Shortcut: Access Table
  • .mda - Access Database, used for addins (2,95,97), previously used for workgroups (2).
  • .mdf - Access (SQL Server) detached database (2000)
  • .mdw - Access Workgroup, database for user-level security.

More Info

Code:  Access VBA File Extensions (.MDB)

ASP Classic:   .ASP

.asp is the default extension for Active Server Pages (ASP) although some developers will change the default extension in an effort to add an additional security level. Although there is no clear standard for include files, using .INC is common but you must make sure that .INC files are not executed nor displayed.

More Info / Comment

More Info

C#: 

Common source code file extensions include:

  • .SLN - Solution File. Contains solution specific information such as links to the projects within this solution.
  • .CSPROJ - C# Project File. Contains project specific information. When you add a file containing one or more classes, it is added to this file.
  • .CS - C# source file.
  • .Designer.CS - C# form file (a text resource file).
Syntax Example:
//Sample code snippet from the .csproj project file:
<ItemGroup>
  <Compile Include="Cyborg.cs" />
  <Compile Include="Cyborg600.cs" />
  <Compile Include="Form1.cs">
    <SubType>Form</SubType>
  </Compile>
  //...


More Info

C++:   .CPP and .H

Important standard C++ file extensions:

  • .CPP = C++ Source file. Your startup source file will have a main() routine.
  • .C = C source file (sometimes used for C++ source files too).
  • .H = Header include file.

Some important Visual C++ file extensions:

Some important C++Builder file extensions:

  • .BDSPROJ and .CBPROJ = Project file.
More Info / Comment

More Info

C++/CLI:   .CPP and .H

The C++/CLI standard file extensions are the same as standard C++. Important C++ file extensions:

  • .CPP = C++ Source file. Your startup source file will have a main() routine.
  • .C = C source file (sometimes used for C++ source files too).
  • .H = Header include file.

Some important Visual C++ file extensions:

More Info / Comment

More Info

Corel Paradox: 

Paradox for Windows has two primary file types: source files and delivered files:

Source Files
Source files in Paradox are binary but can can be opened in later versions of Paradox and even in earlier versions if you don't use any new features.

  • .FSL = Form
  • .RSL = Report
  • .SSL = Script
  • .LSL = Library

Since Paradox source files do not compile to an EXE, Paradox developers tend to use a startup form or script to start the application.

Delivered Files

Can only be opened in the major version of Paradox they were compiled in (7, 8, 9, 10, 11, etc).

  • .FDL = Form
  • .RDL = Report
  • .SDL = Script
  • .LDL = Library

More...

For querires Paradox offers with Query By Example (QBE) or Structured Queary Language (SQL). You can save and execute these queries.

  • .QBE = Query By Example
  • .SQL = Structured Query Language


Linked Certification Question(s)

The following are practice certification questions with answers highlighted. These questions were prepared by Mike Prestwood and are intended to stress an important aspect of this KB post. All our practice questions are intended to prepare you generally for passing any certification test as well as prepare you for professional work.

Beginner

1 Beginner Level Question

Question #1: Multiple Choice

A form has what extension?

Answer:
1. 

.FSL for the delivered form, .FDL for the source code.

2. 

.FS for the source code, .FD for delivered form.

3. 

.FSL is the only extension for a form.

4. 

.FSL for the source code, .FDL for delivered form.

5. 

.FDL is the only extension for a form.

More Info

Code:  ObjectPAL File Extensions
KB Post:  Paradox Table Specifications

Delphi: 

Common source code file extensions include:

  • .BDSPROJ - Project, Borland Developer Studio project file holds compiler options, etc. This is the file you open.
  • .DCU - Delphi Compiled Unit file.
  • .DFM - Delphi Win32 form file (a text resource file).
  • .DPR - Delphi project file. Primary project "source" file.
  • .PAS - Delphi unit source file.

Note: Delphi 2009 changed the project file to acommadatte new features. When you open a project file from a previous version, it will be upgraded. In addition to .bdsproj, D2009 also uses a .dproj project file.

Classes in .PAS Source files

It is customary to group related classes into a single .pas unit file.

Delphi 1-7: Because all classes in a unit are friendly (see each other's private members), some developers like to put each class in it's own unit and reserve putting multiple classes in the same unit until they wish to implement friendly classes.

Delphi 2005+: New strict keyword allows you to indicate friendly.

Delphi Prism: The Strict keyword was introduced from the beginning (Delphi.Net�preview that shipped with D7).

More Info

Code:  Delphi File Extensions
Code:  Delphi Prism File Extensions

Delphi Prism: 

Delphi Prism common source code file extensions include:

  • .SLN - Solution File. Contains solution specific information such as links to the projects within this solution.
  • .Oxygene - Project File. Contains project specific information but this is not the Delphi-like project file Delphi developers are used to. This is the VS.Net project file.
  • Program.pas - This is the Delphi-like .dpr project-equivalent file and contains the Main method which is the entry point for the executable. All .NET projects except for DLLs needs one.
  • .pas - Delphi Prism source file (same extension as Delphi for Win32).
  • .Designer.pas - Prism form file (a text resource file).
More Info / Comment


More Info

Code:  Delphi File Extensions

Java:   .java

The customary primary source file extension for Java code is ".java" which could contain anywhere from a single class to the entire source code.

Other important files:

  • .JAR - Java archive file (compressed code file). Archive that contains multiple Java files and is compressed using .ZIP compression; stores Java classes and metadata and may be digitally signed; runs as a program if the Java Runtime Environment (JRE) is installed on the computer.
  • .CLASS - compiled source code which are platform-independent. If a source file has more than one class, each class is compiled into a separate .class file. These .class files can be loaded by any Java Virtual Machine (JVM).

Additional Eclipse Files:

  • .JPAGE = Eclipse Scrapbook file

More Info

Code:  Java File Extensions (.java)

JavaScript: 

.js is the common standard for browser-side JavaScript and .jsp is the common standard for server-side JavaScript.

More Info / Comment

More Info

Perl:   .pl, .plex, and .aspl

.pl is the traditonal default extension for Perl although some developers will change the default extension in an effort to add an additional security level and .cgi is still popular as a Perl associated extension as well as .plex and .aspl.

  • .pl - Perl
  • .cgi - Common Gateway Interface
  • .plex - Perl Executable
  • .aspl - Active Server Perl
More Info / Comment

More Info

PHP:   .php

.php is the default extension for PHP although some developers will change the default extension in an effort to add an additional security level. If your code is tied to a particular version of PHP then some developers at the major PHP version number to the extension as in .php3, .php4, .php5, etc. 

.phtml is also sometimes used especially for files that contain both HTML and Perl code.

More Info / Comment

More Info

VB Classic: 

  • .BAS = VB source code file.
  • .CLS = VB class file (one class per file).
More Info / Comment

More Info

VB.Net: 

Common source code file extensions include:

  • .SLN - Solution File. Contains solution specific information such as links to the projects within this solution.
  • .VBPROJ - VB.Net Project File. Contains project specific information in XML. When adding a file, it is added to the project file.
  • .VB -VB.Net source file.
  • .Designer.VB -VB.Net form file (a text resource file).
Syntax Example:
//Sample code snippet from the .vbproj project file:
<ItemGroup>
  <Compile Include="Cyborg.vb" />
  <Compile Include="Form1.vb">
    <SubType>Form</SubType>
  </Compile>
  //...

More Info





Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2024 Prestwood IT Solutions.   [Security & Privacy]