Untitled
public text v1 · immutable
#include <stdio.h>
#include <windows.h>
int main(){
FILE * pFile;
pFile = fopen("map.txt", "wt");
if(!pFile){
MessageBox(NULL, "Error Opening File!", "ERROR", MB_OK | MB_ICONEXCLAMATION);
return 0;
}
int x;
for(x=1;x<1337;x++){
char *str;
sprintf(str, "%c", x);
fputs(x, pFile);
}
fclose(pFile);
return 0;
}