You can do something like this:
#include <cstdint>
#include <fstream>
#include <string>
struct track { uint32_t id; char title[8]; };
std::ifstream infile("thefile.bin");
for (;;)
{
track t;
if (!infile.read(reinterpret_cast<char*>(&t.id), 4) ||
!infile.read(t.title, 8) ||
infile.gcount() != 8)
{
// error, die (or perhaps end of file)
}
// now you can use "t", e.g.:
std::string title(t.title, 8); // a sane string object
}