Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
C#
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();
Posted
Updated 12-Jun-14 20:35pm

1 solution

Linq is used as front-end database query writing framework using several data providers like Linq-Sql ,dataset,xml,object etc. you can fire a linq query against there providers only. You can fire linq against string [] object but conversion is not possible.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900