title: TagLib-Sharp - Retagging files
body: <p>im about to create a small tool, which recreates all tags on my mp3 files.
  Because they are in a mess, i want to remove all tags and recreate them with the correct values.</p>
  
  <p>Doing so ive encountered the problem that im not able to set the tag values.
  But the problem is, that im not able to set the tags. I have the following code:</p>
  
  <pre><code>File tagLibFile = File.Create(filePath);
  tagLibFile.RemoveTags(TagLib.TagTypes.AllTags);
  tagLibFile.Tag.Album = album;
  tagLibFile.Tag.AlbumArtists = artists.ToArray();
  tagLibFile.Tag.Track = track;
  tagLibFile.Tag.Title = title;
  tagLibFile.Tag.TitleSort = titleSort;
  ...
  tagLibFile.Save();
  </code></pre>
  
  <p>The file is read out correctly. Then the tags are removed.
  But after that setting the Tag does not work. The strings inside the tag are still null.
  I havent seen a method like "tagLibFile.SetTag(Tag t)". The Tag is only available as a getter, but not a setter.</p>
  
  <p>After that ive added some Frames, but that doesent have the effect of setting the tags. Maybe im using it the wrong way?
  Hope you can help me out of this!</p>
  
  <p>Kind regards,</p>
  
  <p>SyLuS</p>