I'm very confused with prolog, it's way different to any language I've ever used (many languages) How do I go about getting argv[0] from:
current_prolog_flag(argv, Argv),
write(Argv).
Now if I tried to type Argv[0] or Argv(0) or Argv<0> it fails.. this leaves me with no clue and very little help from the documentation.. it seems that they expect you to already be a prolog expert :D
Another question, how would I assign Argv[0] to a variable so I can print it later using "write" ?