I try to make app which will load and edit id3 tags. I decided to use taglib for that. Everything works fine, but when i try to save edited tag it falls on IOException "The process cannot access the file ...". Heres code:
TagLib.File f = TagLib.File.Create(cesta);
f.Tag.Year = 1999;//uint.Parse(textBox1.Text);
f.Save();
Previously i just have load procedure:
TagLib.File f = TagLib.File.Create(path);
string rok = f.Tag.Year.ToString();
textBox1.Text = rok;
string album = f.Tag.Album;
textBox2.Text = album;
string[] artist = f.Tag.Performers;
string autor = "";
for (int i = 0; i < artist.Length; i++)
{
autor = autor + artist[i];
}
textBox3.Text = autor;
Does anyone know, that I did wrong?