using System; using System.IO; namespace ConsoleApp1 { class Program { enum Doctor { Tennant, Smith, Capaldi, Whittaker }; static void Main(string[] args) { Doctor alpha = (Doctor)500; // This demonstrates the "fail" output from an enumerated type Console.WriteLine(alpha); Console.WriteLine(String.Format("{0: #,0}", 7)); // This demonstrates the failings of the 0,0 format for numbers < 10 // File.Create() // This will create a file, if you would like to beforehand /* string slacker; // When adding a text file to your project vita the Project Menu item in VS 2019 // the default placement of that file is _three_ directories above where the executable // resides. Thus the ..//..//..// business here. // If you specifically place the input files in the same directory, you won't have to // bother with this using (StreamReader inFile = new StreamReader("..//..//..//user_input.txt")) { slacker = inFile.ReadLine(); // remember to "prime the read" while (slacker != null) { System.Console.WriteLine(slacker); slacker = inFile.ReadLine(); } } */ /* // How you would go about opening/closing a FileStream without using... "using" StreamReader sample = new StreamReader("something.txt"); // loop stuff here sample.Close(); sample.Dispose(); */ } } } /* // Random notes from lecture string alpha = "My name is Daniel Rogness and I'm teaching this class" string tokens[] = // doing token stuff tokens[0] == "My" tokens[1] == "name" Console.ReadLine().Split('\t') */