command line - SWI-Prolog file executing through Java -


i want run swi-prolog java file. want read text.pl file , write output in output.txt file. how can that? i'm not pretty sure of did here if correct or not. i'm not familiar command line calling. java code:

public class example {          public static void main(string[] args)          {             systemcommandsrunner scr = new systemcommandsrunner();             scr.runcommand("swipl -f input.pl < input.pl > output.txt");          } } 

you can use runtime.getruntime().exec("swipl -f input.pl < input.pl > output.txt");


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -