Example #1
0
        private static void LoadLocalStory()
        {
            Console.Write("Enter filename: ");
            string filename = Console.ReadLine();

            filename += ".wia";
            try
            {
                using (FileStream fStream = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read))
                {
                    loadedStory = Interactive.LoadLocal(fStream);
                }
                Console.WriteLine("Successfully loaded story " + loadedStory.Title + " from file " + filename);
            }
            catch (Exception e)
            {
                Console.WriteLine("Unable to load story from file " + filename + ": " + e.Message);
            }
        }