How to check string values in the file .txt C# Console?

Finding your question in the vast world of garbage, I did not find nothing, I would like to ask you geniuses how to do a background check on the presence of question-answer, for example writing the boat "hi", it looks for this value in the file and if it finds then gives the answer, "Howdy", and if not, asks the user to enter a value which he will give in the next call, who could help the traveler space of the network, surely if there is no answer to my question, just in case my script:
using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
namespace MyNeuBot
 public class Neuron
 static string st;
 static string path = @"C:\Users\HEJlbCOH\Desktop\t.txt";
 List<string> planes = new List<string>();

 public void Teach()
 File.WriteAllLines(path, stels.ToArray());
 static string Ans(string q)
 st = q;
 q = st;
 string ans = " ";

 q = q.ToLower();

 string[] chain = File.ReadAllLines(path);

 for (int i = 0; i < baza.Length; i += 2)
 if (q == baza[i])
 ans = baza[i+1];
 return ans;
 public static void Main()
 while (true)
 Console.Write("Your question: ");
 string q = Console.ReadLine();
 Console.WriteLine("the Bot said" + Ans(q) + "\n");
June 7th 19 at 14:51
1 answer
June 7th 19 at 14:53
Perhaps this bot should work with some DBMS and new words will add to your vocabulary.
To start as a DBMS it is possible to take a CSV file (the easiest option) and connect to it as described in

Find more questions by tags Data storageC#Bots