summaryrefslogtreecommitdiff
path: root/BloggerToDasBlog/trunk/src/app/BloggerToDasBlog.Console/Program.cs
blob: 21dcc68cd922a8dd92f29f1d6f84f1225b622bee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Collections.Generic;
using System.IO;

namespace BloggerToDasBlog.Console {
	internal class Program {
		private static void Main( ) {
			IList< IBloggerEntry > bloggerEntries =
				BloggerReader.Read( new Uri( Path.Combine( Environment.CurrentDirectory, "mokhan.blogspot.com.xml" ) ) );

			foreach ( IBloggerEntry bloggerEntry in bloggerEntries ) {
				new DasBlogWriter( ).Write( bloggerEntry );
			}
			System.Console.WriteLine( bloggerEntries );
			System.Console.WriteLine( bloggerEntries.Count + " Entries have been created!" );
			System.Console.ReadLine( );
		}
	}
}