So i have to create a program to read mp3 tags's and get infromation from the tag... If a part of the tag is empty (ex.... title) I should report this by printing out "Not found" or "None".. But i cant figure out how to get this done!
Any help/tips are greatly apperciated!
Thanks in advance, jackson!
Here is what i have..... So if title is empty i should report it.. I can't get this to work!
for (int i = 0; i<3;++i)
{
char ch;
in.get(ch);
tag[i] = ch;
}
for (int j = 0; j<3;++j)
cout <<tag[j];
cout <<endl;
for (int i = 0; i<30;++i)
{
char ch;
in.get(ch);
title[i] = ch;
}
By the way: Why are you reading char by char instead of in.read(title, sizeof(title))?
You could also add an extra cell (with '\0'), so you can do std::coud<<title;