func LoadFromFile(filename string) (*MetaInfo, error) {
	f, err := os.Open(filename)
	if err != nil {
		return nil, err
	}
	defer f.Close()
	return Load(f)
}
Convenience function for loading a MetaInfo from a file.
package metainfo
import (
	"crypto/sha1"
	"errors"
	"fmt"
	"io"
	"log"
	"os"
	"path/filepath"
	"strings"
	"time"
	"github.com/anacrolix/missinggo"
	"github.com/anacrolix/torrent/bencode"
)
type FileInfo struct {
	Length int64    `bencode:"length"`
	Path   []string `bencode:"path"`
}
func Load(r io.Reader) (*MetaInfo, error) {
	var mi MetaInfo
	d := bencode.NewDecoder(r)
	err := d.Decode(&mi)
	if err != nil {
		return nil, err
	}
	return &mi, nil
}