home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex092.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
594b
|
14 lines
// Example: 092 from Library Reference
#include "..\3D-Ware\dddware.h"
#include <stdio.h>
char far text[128]; // Make sure buffer is large enough for file to
// load to.
short main(void)
{
dddOpenReadClose("EXAMPLE.TXT",text); // Read in the text file.
printf("\nText is :- %Fs\n",text); // Print the text. The format specifier if %Fs as
// the string is accesed as a far pointer.
return 0; // Bye.
}