blob: 2bee9b716fdcfc035b76d9795a19d1f4fe6613b7 [file] [log] [blame]
#include <stdio.h>
#include <string.h>
int main() {
FILE *handle = fopen("test", "wb");
fputs("hello from file!", handle);
fclose(handle);
handle = fopen("test", "r");
char str[256] = {};
fgets(str, 255, handle);
printf("%s\n", str);
#ifdef REPORT_RESULT
REPORT_RESULT(strcmp(str, "hello from file!"));
#endif
return 0;
}