printf("File name: %s\n", (ptr == NULL) ? "" : ptr);