title: Getting Result from a Prolog Query in C# using SWI-Prolog C#
body: <p>I am writing a GUI for a prolog file using C# using SWI-Prolog, however I don't know how to get the solution from a query into some strings.</p>
  
  <p>The query direct_evening_flight(london,edinburgh) in pl returns the some days of the week for instance Monday, Tuesday, Thursday.</p>
  
  <p>If I execute the query in C# </p>
  
  <pre><code>PlQuery q = new PlQuery("direct_evening_flight(london,edinburgh).")
  </code></pre>
  
  <p>It automatically print the result into the console. However I want to receive the result one by one into a string variable instead. How can I do that? </p>