using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using SbsSW.SwiPlCs; using System.IO; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { StreamReader myFile = new StreamReader("C:\\TS.pl"); string myString = myFile.ReadToEnd(); myFile.Close(); Environment.SetEnvironmentVariable("SWI_HOME_DIR", @"C:\\Program Files\SWI-Prolog\boot32.prc");//@"the_PATH_to_boot32.prc"); if (!PlEngine.IsInitialized) { SbsSW.SwiPlCs.PlEngine.Initialize(new String[] { "-q", "-f", myString }); } } }
SbsSW.SwiPlCs.PlEngine.Initialize(new String[] { "-q", "-f", "C:\\TS.pl" });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)