I am using a flat text file as a database and so i need to be able to parse a .txt. The first thing i need to do is be able to pull out the exact string i'm looking for which i am confused about. The other answers i have seen to this the strings are the same every time... but i am looking for how to pull out a text for example between (beginning) and (end) where everything in between is a different length every time. any help? Here is an example of what i want
String line = sr.ReadToEnd();
// line to get all the text from my file
string whatIWant = stringEditor("beginning", "end", line);
string whatIWant(string first, string second, string whatToParse)
{
//what do I put here to return
//the text from line between first and second
return whatever;
}