The following should print the numbers to your file. It will not print to the console window. Your complaint "doesn't write any numbers to it" is ambiguous. Is "it" the window or the file?
Robert Wishlaw
#include <stdio.h>
int main()
{ int i;
FILE *fw;
char* filename = "C:\\Users\\*****\\Documents\\numbers.txt";
fw = fopen(filename, "w");
if (fw == NULL)
{printf("Could not open file %s",filename);
return 1;
}
for (i=1000000000;i<10000000000;i++) // You had an incorrect semi-colon here
{
fprintf(fw,"%i\n",i); // You omitted the % formatting specifier
}
fclose(fw); // You MUST close the file
return(0);
}