DADiSP Worksheet Functions > Function Categories > File Manipulation > VIEWFILE
Displays an ASCII (text) file.
VIEWFILE(x, y, "filename", start, end, tabs, lineno)
x |
- |
Optional. An integer, the X coordinate in text rows. |
y |
- |
Optional. An integer, the Y coordinate in text rows. |
"filename" |
- |
A string, the name of the file to display. |
start |
- |
Optional. An integer. Starting line in file. Defaults to 1, the first line. |
end |
- |
Optional. An integer. Last line to display. Defaults to –1, last line in file. |
tabs |
- |
Optional. An integer. Expand tabs. Defaults to 0, tabs not expanded. |
lineno |
- |
Optional. An integer. Display line numbers. Defaults to 0, do not show line numbers. |
viewfile("dadisp.cnf")
displays the DADiSP configuration file.
viewfile dadisp.cnf
Same as above except the filename is entered in command form.
The upper left-hand corner of the screen is the origin, with coordinates of x=0, y=0. The screen has dimensions of 80 columns by 24 rows. The bottom right-hand corner of the screen has coordinates x= 80, y=24. To center the menu, set x and y to -1.
See VIEW to display an SPL file.
See VIEWHTML to display a web page.
See SHELLEXECUTE to process a file with a system defined application.