for reading the image which is in bmp. i am reading that same as text file but it does not work.

my code

# include <iostream.h>
# include <fstream.h>
# include <string.h>

using namespace std;
int main()

{ 

	string getcontent;
	if string openfile(" image.bmp")
		if(openfile.is_open())
		{
				while(! openfile.eof())
				{
					getline(openfile, get content);
					cout<< get content <<endl;
				}

		}
}

Ok so first off.... code tags.
And second.... what the heck is this??

if string openfile(" image.bmp")
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.