All pastes #268883 Raw Edit

Untitled

public text v1 · immutable
·published 2006-12-06 02:34 UTC
rendered paste body

#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;

}