Texture mapping

Whats wrong with this code ??

where should i put name of the file to be used as texture ??


AUX_RGBImageRec *LoadBMP(char *Filename)        // Loads a bitmap image
{
    FILE *File = NULL;              // File handle

    if (!Filename)                // Make sure a filename was given
    {
        return NULL;            // If not return NULL
    }

    File = fopen(Filename,"r");    // Check to see if the file exists

    if (File)            // Does the file exist?
    {
        fclose(File);        // Close the handle
        return auxDIBImageLoad(Filename);       // Load the bitmap and return a pointer
    }

    return NULL;                    // If load failed return NULL
}

Have you read the tutorial this comes from?:

This is really, really old tutorial code (12+ years old). Did you see the comment at the top of it:

See Also:

Whats wrong with this code ??
where should i put name of the file to be used as texture ??

Sorry to sound rude - but do you really think it makes sence to start with OpenGL when lacking even basic understanding of the programming language used?