part of my code which is working with Visual C++ is below. data in bin file looks like ff a0 b0 c0 a0 b0 c0 d0
#include<fstream>
#include<vector>
main()
{
std::ifstream file;
file.open("file.bin", std::ios::binary);
vector<uint32_t> data;
uint32_t temp;
// now read the data in uint32_t format
while(file.read(reinterpret_cast<char *>(&temp), sizeof(temp)))
{
data.push_back(temp);
}
file.close();
}