TYPE (Short Name: TYP)
Top  Previous  Next

Use the TYPE command to send an ASCII text file to another file, screen, or printer.

type

Option

filespec
Specifies a file name with a drive and path specification in the form D:\PATHNAME/FILENAME.EXT.

About the TYPE Command

This command is similar to the operating system TYPE command. Unlike the operating system command, the R:BASE command displays a screen of data and prompts you to press any key to continue.

In R:BASE, you can use TYPE to display a file and review its contents. If TYPE is used in an R:BASE command file, it can display any ASCII file.

The SET WIDTH and SET LINES commands affect how TYPE displays data. For example, if you set width to 40 characters and lines to 15, TYPE displays 15 lines of data before the "Press any key to continue" message displays, and wraps each line of data after 40 characters.

Use TYPE to check an ASCII file for "nondisplayable" characters before transferring data from an external source to R:BASE. If your computer displays irrelevant graphic characters, the file contains nondisplayable characters that R:BASE might not be able to read.

To send a file to a printer, enter OUTPUT PRINTER before the TYPE command.

Examples

The following command displays the ASCII file named THISFILE.DAT stored on the current drive and directory.

TYPE thisfile.dat

The following command displays the ASCII file named MYFILE.DAT stored in the MYDIR directory on drive B:.

TYPE b:\mydir/myfile.dat

The following command prints the ASCII file named THISFILE stored on drive A:, then returns output to the screen.

OUTPUT PRINTER
TYPE a:thisfile 
OUTPUT SCREEN