diff --git a/SweetLib.Demo.Console/Program.cs b/SweetLib.Demo.Console/Program.cs
index 61d0cfd..b865291 100644
--- a/SweetLib.Demo.Console/Program.cs
+++ b/SweetLib.Demo.Console/Program.cs
@@ -1,5 +1,6 @@
using System.IO;
using SweetLib.Classes.Storer;
+using SweetLib.IO.Classes.Streaming;
using SweetLib.Utils.Logger;
namespace SweetLib.Demo.Console
@@ -17,11 +18,24 @@ namespace SweetLib.Demo.Console
Logger.Warn("WARN!");
Logger.Error("Error :(");
- System.Console.ReadLine();
-
+
var f = Path.GetTempFileName();
var ini = new IniFileStorer(f);
System.Console.WriteLine(ini.ReadString("sec","key"));
+
+ using (var stream = File.Create(@"S:\test.dat"))
+ {
+ StreamManager.SaveToStream(stream, 5);
+ }
+
+ using (var stream = File.OpenRead(@"S:\test.dat"))
+ {
+ int value;
+ StreamManager.LoadFromStream(stream, out value);
+ System.Console.WriteLine(value);
+ }
+
+ System.Console.ReadLine();
}
}
}
diff --git a/SweetLib.Demo.Console/SweetLib.Demo.Console.csproj b/SweetLib.Demo.Console/SweetLib.Demo.Console.csproj
index 5ef5e6c..01f5111 100644
--- a/SweetLib.Demo.Console/SweetLib.Demo.Console.csproj
+++ b/SweetLib.Demo.Console/SweetLib.Demo.Console.csproj
@@ -40,9 +40,6 @@
..\packages\Microsoft.Win32.Registry.4.3.0\lib\net46\Microsoft.Win32.Registry.dll
-
- ..\packages\SweetLib.0.2.0-alpha\lib\netstandard1.3\SweetLib.dll
-
..\packages\System.AppContext.4.3.0\lib\net46\System.AppContext.dll
@@ -115,6 +112,16 @@
+
+
+ {0874043e-42b3-43b2-b3bb-726cee4142e9}
+ SweetLib.IO
+
+
+ {7c15f2f3-2bf2-46fb-b813-9eec1b41d679}
+ SweetLib
+
+