#include int main() { printf((char *)"Program starting - about to fopen(dd:TESTDD, \"r\")\n"); FILE *fp; char buf[256]; fp = fopen("dd:TESTDD", "r"); if (fp == NULL) { printf((char *)"fopen returned NULL\n"); printf((char *)"fopen read failed\n"); return 1; } printf((char *)"fopen succeeded!\n"); printf((char *)"Existing content:\n"); while (fgets(buf, 256, fp) != NULL) { printf((char *)"%s", buf); } fclose(fp); printf((char *)"Read complete.\n"); return 0; }