I am trying to open a mp3 to read the ID3 tag information, when the mp3 is opened in an ASCII editor I can see all the information I want, including spaces. But...
When I try running the following chunk of code on that same mp3, I get the same thing, except all the spaces are missing.
for (int i=0; i<350; i++) {
mp3 >> stream[i];
cout << stream[i];
}
I've tried opening the file as both ascii and binary, using the >>
operator and mp3.get(stream) notation, but there is never a space. As a last resort I tried casting off all the characters to ints and looking at that, but the space isn't there.
Is there something I am doing wrong?