I've mentioned my complete objective in the title.
I already know how to find a string, and add a item in listbox.
But so far I kept failing at retreiving the string between the quotes
My txt file looks like this:
List of delicious fruits
( Index 1 "Apple")
( Index 2 "Cherry")
( Index 3 "Banana")
The listbox has to view this :
This is how far I got.
public void fruitFinderBlock()
StreamReader reader = new StreamReader(@"C:\TEST.txt");
string content = reader.ReadToEnd();
while (content != null) // while not at end of file
string Find = "Index";
if (content == Find)
// TODO assign fruitname to the string between the quotes
View Complete Post