From jan@swi.psy.uva.nl  Wed Sep 29 10:07:29 1999
Received: from gollem.swi.psy.uva.nl (jan@gollem [145.18.114.15])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id KAA24505
	for <prolog@swi.psy.uva.nl>; Wed, 29 Sep 1999 10:07:29 +0200 (MET DST)
Received: from localhost (localhost [[UNIX: localhost]])
	by gollem.swi.psy.uva.nl (8.8.8/8.8.8) id KAA20630;
	Wed, 29 Sep 1999 10:08:27 +0200
From: Jan Wielemaker <jan@swi.psy.uva.nl>
To: prolog@swi.psy.uva.nl, Cortelli Paolo <cortelli@posta.alinet.it>
Subject: Re: Command line
Date: Wed, 29 Sep 1999 10:04:21 +0200
X-Mailer: KMail [version 0.7.9]
Content-Type: text/plain
References: <3.0.6.32.19990928135817.0079ebf0@posta.alinet.it>
MIME-Version: 1.0
Message-Id: <99092910082703.20495@gollem>
Content-Transfer-Encoding: 8bit

On Tue, 28 Sep 1999, Cortelli Paolo wrote:
>Hi!
>I'm using SWI-Prolog for Windows and have made an exe which should receive
>parameters through the command line: is there a way to do so?

You can fetch the commandline arguments using

	...
	unix(argv(Argv)),
	...

or, at low-level using '$argv'(Argv).  Sometime, this will change to get
a more meaningful name, preferably in line with some (defacto) standard.

>Another question: I need to read in binary from a file and am using get0/1;
>isn't there a way to read in a buffer, say, 200 bytes at a time?

No.  Of course, this isn't very hard to write.  If speed is crucial and
lots of low-level I/O is required, it is often a good idea to consider
writing the low-level stuff in C.

	Regards --- Jan

