home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Madness / VRMAD96_ONE.ISO / virtek / libex / libex092.c < prev    next >
C/C++ Source or Header  |  1995-08-24  |  594b  |  14 lines

  1.                                         // Example: 092 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. #include  <stdio.h>
  4. char far text[128];                     // Make sure buffer is large enough for file to
  5.                                         // load to.
  6. short  main(void)
  7. {
  8.   dddOpenReadClose("EXAMPLE.TXT",text); // Read in the text file.
  9.   printf("\nText is :- %Fs\n",text);    // Print the text. The format specifier if %Fs as
  10.                                         // the string is accesed as a far pointer.
  11.   return 0;                             // Bye.
  12. }
  13.  
  14.