public static void Main() { File file = new File(); CommaDelimitedFile file2 = new CommaDelimitedFile(file); CommaDelimitedFile file3 = new CommaDelimitedFile("Some file name"); }
public static void Main() { try { Console.WriteLine("attempting to open file"); CommaDelimitedFile file = new CommaDelimitedFile(); file.Open("c:\\test.csv"); string record = ""; Console.WriteLine("reading from file"); while (file.Read(record) == true) { Console.WriteLine(record); } Console.WriteLine("finished reading file"); } catch (Exception e) { Console.WriteLine(e.Message); } }