Friday, February 02, 2007 1:08 AM
davidsmith
BTSharp Examples: Creating .torrent files with BTSharp 2.0
Creating a .torrent file with BTSharp 2.0
This will create a .torrent file that describes myfile.mp3.
private string myContentProviderId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
stringfile = @"c:\myfile.mp3";
ShareInfo shareInfo = ShareInfo.Create(file, myContentProviderId);
shareInfo.Save(@"c:\myfile.torrent");