Name: Anonymous 2012-09-12 16:23
how do i fix this to actually write to the disc every time i close the file? i think it's just holding it in ram.
#include <stido.h>
#include <dos.h>
#include <stdlib.h>
int main (){
FILE *fp;
int trash = 0;
while 1 > 0
{
sleep(7);
trash = rand();
fp = fopen ("hue.txt", "w")
fputc(trash, fp);
fclose(fp);
}
return 0;
}