Im using X code to develop a C++ algorithm. there i want to read a bmp file(testinp.bmp) to do that i have used following code. but it didnt work .and please help me.Thank you in advance for any help you can provide.
char inpfile[256] = "testinp.bmp";
void fileReading(void)
{
fprintf(stderr,">>> File Initializing <<<\n");
fprintf(stderr, "Input File: %s\n\tReading...", inpfile);
ReadBmp(inpfile, &inp);
fprintf(stderr, "Done. W: %d, H: %d\n", inp.width, inp.height);
}
Error log
![>>> File Initializing <<<
Input File: testinp.bmp
Reading...Error: file testinp.bmp couldn't open for read!.
Program ended with exit code: 1][1]