DEV Community

Discussion on: File input and output in C

Collapse
 
jaskirat2k profile image
Heartless Jaskirat

I think there is a mistake in the examples.
Here:-

if(!filename)
{
  printf("Failed to open %s", filename);
}

It should be :-

if(!pfile)
{
  printf("Failed to open %s", filename);
}