diff --git a/ucalc/App.xaml.cs b/ucalc/App.xaml.cs index 616fa75..d1a7db1 100644 --- a/ucalc/App.xaml.cs +++ b/ucalc/App.xaml.cs @@ -1,4 +1,6 @@ -using UCalc.Data; +using System; +using System.IO; +using UCalc.Data; namespace UCalc { @@ -9,7 +11,10 @@ namespace UCalc public App() { - _recentlyOpenedList = new RecentlyOpenedList("recently.txt"); + var appDataPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)}/UCalc"; + Directory.CreateDirectory(appDataPath); + + _recentlyOpenedList = new RecentlyOpenedList($"{appDataPath}/recently.txt"); } } } \ No newline at end of file