static void Main(string[] args) { FileStream file = new FileStream("test.torrent", FileMode.Open); DotTorrent.Torrent t1 = new DotTorrent.Torrent(); Bencode b = new Bencode(file); b.Parse(); b.createDotTorrent(); b.display(); b.t.display(); }
public Bencode(FileStream _file) { file = _file; t = new DotTorrent.Torrent(); }