Once the Metainfo file can be read, the client ought to know which files compose the transfer, and how to connect to sources for the transfer. In this post, we will define the elements we need to perform the I/O operations, that is, to read data from (and write it to) the disk.
Read more »
To exchange files, a BitTorrent client needs some information about the exchanged file(s). This information is contained within a file named the “metainfo” file.
More details are explaind in the Metainfo File Structure of the BitTorrent specification web page.
In short, the structure is a UTF-8 bencoded dictionary containing some required and optional key/value pairs.