We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e6f190 + b4e4887 commit be5a14bCopy full SHA for be5a14b
README.md
@@ -30,12 +30,12 @@ Working with torrent files:
30
```C#
31
// Parse torrent by specifying the file path
32
var parser = new BencodeParser(); // Default encoding is Encoding.UT8F, but you can specify another if you need to
33
-var torrent = parse.Parse<Torrent>("C:\ubuntu.torrent");
+var torrent = parser.Parse<Torrent>("C:\ubuntu.torrent");
34
35
// Alternatively, handle the stream yourself
36
using (var stream = File.OpenRead("C:\ubuntu.torrent"))
37
{
38
- torrent = parse.Parse<Torrent>(stream);
+ torrent = parser.Parse<Torrent>(stream);
39
}
40
41
// Calculate the info hash
0 commit comments