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