Hello. I downloaded this library here. I unpacked it, added it to the project, at the same time creating folders the same as in the library itself and filled these folders with files from the corresponding folders in the library (see image). In the using area I connected this library like this:

using WDS.Bencode; 

But whenever you try to open a torrent file for editing, it throws an error, like "A bencoded file should only contain exactly one root. 23 tokens were found." or, for example, "Error while parsing string length". Can anyone explain what I'm doing wrong? Well, or suggest other ways to edit the torrent file. I open it this way:

 BencodeElement fileDom = System.IO.File.ReadAllText(@"d:\file.torrent").ToBencodeElement(); 

enter image description here

  • one
    You added source code to the project => You can see the exact place in the extender method that did not like your lib. Alternatively, you use 2010 lib => for all this time the format could tolerate changes. - iluxa1810

0