Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - type display the contents of a file to the screen http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 type                Display the contents of a file to the screen
------------------------------------------------------------------------------
 Syntax
   type cFile [to print]

 Arguments
   cFile is the name of the file to display.

 Description
   The type command displays the contents of a disk file to the screen.
   Output can alternatively sent to the printer device via the to print
   clause.

   Use type to display the contents of an ASCII text file. Use the exist()
   or findfirst() function to search for the file.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   proc Test_type
   type "c:\autoexec.bat" to print  // print out file
   // show contents of a file, and duplicate it in an alternate file
   set alternate to "autoexec.bak"
   set alternate on
   type "c:\autoexec.bat"
   close alternate
   type "c:\autoexec.bak"           // show new file
   endproc

   proc main
   Test_type()
   endproc

See Also: fileview() typefile()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson