1. 创建Schema文件
private string GenerateTextDriverSchema(string pFileFullName, CSVDelimiter pDelimiter, bool pFirstRowAsHeader)
{
// ===Refer to:http://msdn.microsoft.com/en-us/library/windows/desktop/ms709353(v=vs.85).aspx
Logger.Instance.Info("Generate driver schema for reading Csv file.");
string schema = string.Empty;
string csvFileName = Path.GetFileName(pFileFullName);
string csvDir = Path.GetDirectoryName(pFileFullName);
schema = Path.Combine(csvDir, "Schema.ini");
#region intialization
// check if the new schema for a file exists in the existing schema.ini(if it exists). If the schema exists in the file, we remove the relevant info of it.
// then overwrite the file with updated schema ifo.
if (File.Exists(schema))
{
List<string> lines = new List<string>(File.ReadAllLines(schema));
if (lines.Count > 0)
{
int removefrom = 0;
bool toremove = false;
for (int i