|
FILE *File1;
int dd[100];
Randomize();
/* open a file for update */
File1 = fopen("c:\\testimage\\text2.txt", "w+t");
for(int i; i<100 ;i++)
{
//dd[i]=(int)random(256);
dd[i]=314;
/* write some data to the file */
fprintf(File1, "%d", dd[i]);
}
/* close the file */
fclose(File1);
파일은 생기는데 아무것도없네요 --;
알려주세요~
|