Yes. In fexists, What type is ifile? what type are you returning from fexists? Where in your main program are you testing fexists return value?