public static void Initialize(string file, string format)
{
if (string.IsNullOrEmpty((format)))
return;
try
{
Format = (SqlFormat)Enum.Parse(typeof(SqlFormat), format, true);
}
catch (Exception)
{
Program.PrintUsage("The SQL format " + format + " was not recognized.");
return;
}
File.Delete(file);
_file = new StreamWriter(file, true);
}