#include "stdafx.h"
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char* argv[])
{
int x,y;
ifstream file;
file.open("BMP/pic.bmp");
file.seekg(18,ios::beg);
file>>x>>y;
file.close();
return 0;
}
the x,y variables aren''t changed at all.
Could some one help me with this?
Thanks ,spe
JSoft@coder.hu
IO problem
Hi!
I''m trying to open a bmp file and read the size of the picture, but somehow it doesn''t work. here is the source :
Google keywords: ifstream read reference
istream::read()
--
You''re Welcome,
Rick Wong
- Google | Google for GameDev.net | GameDev.net''s DirectX FAQ. (not as cool as the Graphics and Theory FAQ)
istream::read()
--
You''re Welcome,
Rick Wong
- Google | Google for GameDev.net | GameDev.net''s DirectX FAQ. (not as cool as the Graphics and Theory FAQ)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement