I'm new to C#, so I'm eager for any and all criticism/advice.using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;namespace FileTransfer{    class Program    {        private static string targetPath;        public static bool running;        static void Main(string[] args)        {            var function = new Functions();            running = true;            int num = 0;            while (running)            {                Console.WriteLine(These files in Customer Orders are new:);                ModifiedFiles newFiles = new ModifiedFiles();                num = 0;                foreach (var file in newFiles.modified())                {                    Console.WriteLine(\+file+\);                    num++;                }                Console.WriteLine(Transfer {0} file(s) to Home Office? y/n, num);                string answer = Console.ReadLine();                if (answer == y)                {                    targetPath = @C:\Users\Student\Desktop\Home Office;                    num = 0;                    foreach (var file in newFiles.modified())                    {                        File.Copy(file.FullName, Path.Combine(targetPath, file.Name), true);                        num++;                    }                    Console.WriteLine({0} file(s) transfered., num);                    function.exit();                }                else if (answer == n)                {                    function.exit();                }                else                {                    function.wrong();                }            }        }    }       class ModifiedFiles    {        public string sourceDir;        public IEnumerable<FileInfo> modified()        {            sourceDir = @C:\Users\Student\Desktop\Customer Orders;                var directory = new DirectoryInfo(sourceDir);            DateTime from_date = DateTime.Now.AddDays(-1);            DateTime to_date = DateTime.Now;            var files = directory.GetFiles()              .Where(file => file.LastWriteTime >= from_date && file.LastWriteTime <= to_date);            return files.ToList();        }    }    class Functions    {         public void wrong() { Console.WriteLine(---Input must be 'y' or 'n'.); }        public void exit()        {            Console.WriteLine(Would you like to exit the program? y/n);            string answerExit = Console.ReadLine();            if (answerExit == y)            {                Console.WriteLine(See yah!);                Environment.Exit(0);            }            else if (answerExit == n)            {                // Loop back to beginning            }            else            {                this.wrong();            }        }                   }}
Simple C# application that transfers new files (modified in the last 24 hours) from one directory to another
c#;beginner;datetime;file system;console