public static void ToFile(this BasicIMDBCrawler.Entry e, FileInfo f)
 {
     using (var s = new StreamWriter(f.OpenWrite()))
     {
         ToFile(e, s);
     }
 }
        public static BasicIMDBCrawler.Entry FromFile(this BasicIMDBCrawler.Entry e, FileInfo f)
        {
            using (var s = new StreamReader(f.OpenRead()))
            {
                FromFile(e, s);
            }

            return(e);
        }
 public static void FromFile(this BasicIMDBCrawler.Entry e, StreamReader s)
 {
     e.Genres                = s.ReadLine().Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
     e.MediumPosterImage     = s.ReadLine();
     e.MediumPosterImagePage = s.ReadLine();
     e.Runtime               = s.ReadLine();
     e.Tagline               = s.ReadLine();
     e.MediumPosterTitle     = s.ReadLine();
     e.UserRating            = s.ReadLine();
 }
 public static void ToFile(this BasicIMDBCrawler.Entry e, StreamWriter s)
 {
     s.WriteLines(
         string.Join("|", e.Genres),
         e.MediumPosterImage,
         e.MediumPosterImagePage,
         e.Runtime,
         e.Tagline,
         e.MediumPosterTitle,
         e.UserRating
         );
 }