help with fstream
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
can anybody tell me how to read hex number in IDX file (foxpro) by using fstream::read ?
-
can anybody tell me how to read hex number in IDX file (foxpro) by using fstream::read ?
What do you really need to do (hex number is a bit generic, maybe, for instance, a
byte
, a16-bit number
... Please note: hex is only anumber representation base
)? Maybe you need to: (1) open the stream in binary mode. (2) use the methodread( unsigned char* puch, int nCount )
to get the relevant bytes. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.