So open codeblocks.
Create new console application, select C, then call it combos.
Make sure your saving the project in c:\cpp\. Click next. Click finish.
Expand the sources folder(+), to the left side and double click on main.c.
Delete the, printf("hello world\n"); line and type or copy and paste in this code.
Then select release from the drop down menu, it should say debug currently. Then go to build on the menu and select build and run.
Your built exe should be in c:\cpp\combos\bin\release
Combos.exe
And the combos.text file should be in c:\cpp\combos
Any errors let me know.
Create new console application, select C, then call it combos.
Make sure your saving the project in c:\cpp\. Click next. Click finish.
Expand the sources folder(+), to the left side and double click on main.c.
Delete the, printf("hello world\n"); line and type or copy and paste in this code.
Code:
#include <stdio.h>
#include <string.h>
int main(){
FILE *FP;
int i=0;
char buffer[20];
sprintf(buffer, "combos.text", i);
fp=fopen(buffer, "w");
for(i=0; i<100000000;i++){
strcat(buffer, "WIFI-");
fprintf(fp, buffer);
}
return 0;
}
Then select release from the drop down menu, it should say debug currently. Then go to build on the menu and select build and run.
Your built exe should be in c:\cpp\combos\bin\release
Combos.exe
And the combos.text file should be in c:\cpp\combos
Any errors let me know.