home *** CD-ROM | disk | FTP | other *** search
- #include "window.h"
- #include <stdio.h>
- #define NORM CREATE_VIDEO_ATTRIBUTE(black,white)
-
- WPOINTER w;
- FILE *outfile;
- char *filename = "wintext";
- char *filename2 = "wintext2";
-
- main()
- {
- int i;
- WindowInitializeSystem();
- WindowSaveInitial(0);
- w = WindowInitialize(BORDER,1,1,20,10,NORM,NORM,SINGLEBOX);
- WindowOpen(w);
- WindowDisplay(w,1,NOEFFECT);
- for (i=1;i<=10;i++)
- WindowWriteString(w,"Hello World!!",i,1);
- GET_KEY();
- WindowWriteTextToFile(w,filename,1); /* use newlines */
- WindowWriteTextToFile(w,filename2,0); /* no newlines */
- }