Esempio n. 1
0
        /// <summary>
        /// Читаем из файла
        /// </summary>
        /// <param name="path">FileName (или путь к файлу)</param>
        public static void Reader(string path)
        {
            string noteHeader = string.Empty;

            if (File.Exists(path))
            {
                string[] lines = File.ReadAllLines(path);
                using (StreamReader sr = new StreamReader(path, Encoding.Unicode))
                {
                    ConsoleMethods.PrintHeaderNote();

                    foreach (var i in lines)
                    {
                        ConsoleMethods.PrintNote(UserInfo.NoteToArr(i));
                    }
                }
            }
            else
            {
                ConsoleMethods.FileExistError();
            }
        }