173
193
// create the torrent and print it to stdout
174
194
std::vector<char> torrent;
175
195
bencode(back_inserter(torrent), t.generate());
176
fwrite(&torrent[0], 1, torrent.size(), stdout);
199
fwrite(&torrent[0], 1, torrent.size(), output);
178
204
#ifndef BOOST_NO_EXCEPTIONS