#include <stdio.h>
#include <afx.h>
void main()
{
LPCTSTR lp = "hello";
short s = 70;
long l = 200;
double d = 20.5;
char buf[200];
sprintf(buf, "%s %d %d %f\n", lp, s, l, d);
FILE *fp;
fp = fopen("c:\\ais1.txt", "wt");
fprintf(fp, "%s", buf);
fclose(fp);
}