Hey, im trying to incorporate the the dll, taglib, known to be useful to retrieve mp3 header tags. Everything is fine until I run the program, and I get this.
Exception TagLib.CorruptFileException was thrown in debuggee:
First MPEG header could not be found.
I have the code set to only effect mp3's, and the code im trying to use is.
string path = @"" + info.Root + "Documents and Settings\\" + System.Environment.UserName + "\\My Documents";
foreach (string str2 in Directory.GetDirectories(path))
{
foreach (string str3 in Directory.GetFiles(str2))
{
if (str3.Contains(".mp3"))
{
TagLib.File file = TagLib.File.Create (str3); //<---------says error occurs here
this.libraryGrid.Rows.Add(file.Tag.Title, "", "", "", "" );
Any ideas? thanks.