Hi
This is a constructor that receives a file name
But it does not work, if I put the file name in fopen it works, but if the same name is in the variable it will not open. Why doesn't this work?Code:Bank::Bank(char s[])
{
fp = fopen("s", "r");
if (fp)
printf("FILE OPENED \n");
else
printf("NO FILE WAS FOUND!!!");
}