I'm working with C # and want to know, please how do I separate the contents of a file containing the following information:
There are 30 calories in Pumpkin (1 cup) . There are 83 calories in Pumpkin (without Salt, Canned) (1 cup) .
There are 67 calories in Vegetable Blend (Corn, Green Beans, Peas, Carrots) (without salt, canned) (1 cup) >. "I want to get the text in bold to be passed to a variable.
EX: From line three of the file I want my variables to have the values contained there:
int calorias = 67;
string nomeVegetal = "Mistura de Vegetais (Milho, Feijão Verde, Ervilhas,Cenouras) (sem Sal, Enlatado)";
string quantidade = (1 chávena);
Note: I have already read the file and separated by line, but in each line I am not able to separate in order to get what I want.