Example #1
0
        static void AppendToFile(string filename, string text)
        {
            SaveGame.EnsureStorageFolderExists(Game.SAVEGAMEFOLDER);
            var Directory = SaveGame.UserStorageFolder(Game.SAVEGAMEFOLDER);
            var Path      = System.IO.Path.Combine(Directory, filename);

            using (var w = File.AppendText(Path))
            {
                w.WriteLine(text);
            }
        }