string readAllDataFromFile = sr.ReadToEnd(); sr.Close(); fs.Close(); string[] SplitAllData = readAllDataFromFile.Split('\r'); foreach (string para in SplitAllData) { string[] temp = para.Trim('\n').Split('~'); if (temp[0] == "ShowMsgBoxInGUI" && (temp[1] == "True"||temp[1]=="Y")) { ShowMsgBoxInGUI = true; } if (temp[0] == "FAPNotFoundForLine" && (temp[1] == "S" ||temp[1]=="Y")) { FAPNotFoundForLine = "S"; } if (temp[0] == "XMLRelatedMsgBox" && (temp[1] == "T"||temp[1]=="Y")) { XMLRelatedMsgBox = true; } if (temp[0] == "RegAndTmplInLog" && (temp[1] == "True"||temp[1]=="Y")) { RegAndTmplInLog = true; } } sr.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)