summaryrefslogtreecommitdiff
path: root/BloggerToDasBlog/trunk/src/app/BloggerToDasBlog.Console/Program.cs
diff options
context:
space:
mode:
authormo.khan <mo.khan@a0a4a051-f042-0410-9e78-9fae330bdb64>2008-01-05 07:16:52 +0000
committermo.khan <mo.khan@a0a4a051-f042-0410-9e78-9fae330bdb64>2008-01-05 07:16:52 +0000
commit8c137f229c36a777ead5cacb3350cb8692646292 (patch)
tree92876c5da0ffd17767e38f94a44415ac27a3c73e /BloggerToDasBlog/trunk/src/app/BloggerToDasBlog.Console/Program.cs
parentcbdf42a6427eef7849d1ab7731f9185b410431d3 (diff)
git-svn-id: http://mokhan.googlecode.com/svn/trunk@9 a0a4a051-f042-0410-9e78-9fae330bdb64
Diffstat (limited to 'BloggerToDasBlog/trunk/src/app/BloggerToDasBlog.Console/Program.cs')
-rw-r--r--BloggerToDasBlog/trunk/src/app/BloggerToDasBlog.Console/Program.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/BloggerToDasBlog/trunk/src/app/BloggerToDasBlog.Console/Program.cs b/BloggerToDasBlog/trunk/src/app/BloggerToDasBlog.Console/Program.cs
new file mode 100644
index 0000000..21dcc68
--- /dev/null
+++ b/BloggerToDasBlog/trunk/src/app/BloggerToDasBlog.Console/Program.cs
@@ -0,0 +1,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( );
+ }
+ }
+} \ No newline at end of file