using ParserEngine.CommaSeperatedValueDocument; using System; using System.Collections.Generic; // Test File public class CommaSeperatedValueDocumentTest { public static void Main(string[] args) { string path; string rules = "Follows Regulation - RFC 4180 (true or false) --> \n (*) Keeps Spaces In Each Token :: true\n" + " (*) Accepts Double Quotes (REG) :: true\n (*) Double Quotes Count As 1 Token :: true\n"+ " (*) Allows For Line Breaks Inside Quotes :: true\n (*) Allows For \"\" inside Double Quotes :: true\n" + " (*) Allows For Comments using ';' :: true\n (*) Allows For Internal Comments :: true"; Console.Title = "CSV Test"; Console.WriteLine("-------------------------------------------------------------------------------"); if (args.Length == 0) { path = "put your path to file here"; Console.WriteLine("Path: " + path); Console.WriteLine("-------------------------------------------------------------------------------"); Console.WriteLine(""); Console.WriteLine(rules); Console.WriteLine(""); Console.WriteLine("Tokens Are: \n"); new ParserEngine.CommaSeperatedValueDocument.CommaSeperatedValue(path); } else if(args.Length > 0) { foreach (string arg in args) { path = args[0]; Console.WriteLine("Path: " + path); Console.WriteLine("-------------------------------------------------------------------------------"); Console.WriteLine(""); Console.WriteLine(rules); Console.WriteLine(""); Console.WriteLine("Tokens Are: \n"); new ParserEngine.CommaSeperatedValueDocument.CommaSeperatedValue(path); } } } }