Hi i just needed a little help in checking strings here is a sample of the code that I need, should be easy to work out what im trying to do.
unfortunatly when i type banana.dat it skips the if statement (so obviously its returning false) would appreciate the help thanx.Code:#include <stdio.h> int main(void) { char fileName[256]; FILE *banana; gets(fileName); if (fileName == "banana.dat") { printf("Yes, fileName is banana.dat, now you can do stuff"); } return 0; }