|
From: Lorenzo <co...@in...> - 2001-08-01 09:23:11
|
I have try this code:
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
char c;
int byte_no = 0;
ifstream in("test.xls", ios::in | ios::binary);
if (!in.is_open())
{
cerr << "error open file" << endl;
return 1;
}
while (in.get(c))
{
if ((byte_no >= 0) && (byte_no <= 7))
cout << endl << "byte " << byte_no << " is " <<
(short)(unsigned char)c << endl;
byte_no++;
}
in.close();
return 0;
}
and display the exact value of the excel file, try again !
----------------------------------------------------------------------------
---
If debugging is the process of removing bugs,
then programming must be the process of putting them in.
----------------------------------------------------------------------------
---
|