SWG

swg icon

SWAG Pascal Snippets (SWAG Reader)

File type: Source code and script file

An SWG file contains material from SWAG, a collection of Pascal code snippets and related programming information. It is intended for use with a SWAG Reader.

What is swg file?

File type category:
Source code and script file

Date updated: November 17, 2026

Record marked as obsolete and not updated for a long time.

SWAG stands for SourceWare Archive Group. It is a collection of Pascal source code and programming information contributed for other Pascal programmers to use.

An SWG file holds snippets and related text, rather than a standalone compiled application. The code may need to be copied into a Pascal source file before it can be compiled or used in a project.

The collection is associated with Turbo Pascal for MS-DOS, which can be used to work with suitable Pascal source code. The SWG format is obsolete, and the original SWAG Reader is legacy software.

How to open swg file?

Use a SWAG Reader to browse the contents. The associated reader is legacy software; if it is unavailable, try opening the SWG file in a plain-text editor to inspect its snippets. Turbo Pascal for MS-DOS can work with Pascal code copied from the file, but the SWG file is not itself a compiled Turbo Pascal program.

How to convert swg file?

There is no general conversion that turns an SWG collection into a complete Pascal program. To use a snippet, copy the relevant Pascal code into a source file, save it in a format Turbo Pascal can read, and check whether it needs additional code or changes before compiling.

Suggested software to open swg file:

Associated software actions with the swg file

Software applications that handle other tasks involving swg files:

Microsoft MS-DOS

Related file extensions