Importing BMP file in Turboc++ issue:BMP file is not being displayed in the output screen : I am trying to import Rama.BMP file in the graphics window of TurboC++,  
for this its source code is as follows(NOTE: I have not mentioned the header files in the source code):  
  
        
    
    struct A
    {
     char type[2];
     unsigned long size;
     unsigned short int reserved1,reserved2;
     unsigned long offset;
     unsigned long width,height;
     unsigned short int planes;
     unsigned short int bits;
     unsigned long compression;
     unsigned long imagesize;
     unsigned long xresolution,yresolution;
     unsigned long ncolors;
     unsigned long importantcolors;
    }HEADER;
    huge DetectSvga()
    {
     return 2;
    }
    void show()
    {
     fstream File;
     File.open("C:\\TURBOC3\\BIN\\Rama.BMP",ios::in);
     char ch;
     File.read((char*)&HEADER,sizeof(HEADER));
     unsigned int i;
     char ColorBytes[4];
     char *PaletteData;
     PaletteData=new char[256*3];
     if(PaletteData)
     {
      for(i=0;i<256;i++)
      {
       File.read(ColorBytes,4);
       PaletteData[(int)(i*3+2)]=ColorBytes[0]>>2;
       PaletteData[(int)(i*3+0)]=ColorBytes[2]>>2;
      }
      outp(0x03c8,0);
      for(i=0;i<256*3;i++)
       outp(0x03c9,PaletteData[i]);
      delete[]PaletteData;
     }
     for(i=0;i<HEADER.height;i++)
     {
      for(int j=0;j<HEADER.width;)
      {
       File.read(&ch,1);
       putpixel(0+(j++),0+HEADER.height-i-1,ch);
      }
     }
     File.close();
    }
    void main()
    {
     clrscr();
     int gd=DETECT,gm,a;
     initgraph(&gd,&gm,"C:\\TURBOC3\\BGI");
     installuserdriver("svga256",&DetectSvga);
     show();
     getch();
     closegraph();
    }
  
Now, i am not getting the BMP file in the graphics window,  
i.e,  
Graphics Window is not displaying Rama.bmp  
so how to fix it?  
Any help...