Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Standard input

0 views
Skip to first unread message

Orhan Teke

unread,
Apr 16, 1998, 3:00:00 AM4/16/98
to

Hi folks,

Can anyone tell me if basic has a standard input. I want to read the
standard input within a basic program. Like stdin with C.

Thanx


Judson McClendon

unread,
Apr 16, 1998, 3:00:00 AM4/16/98
to

Orhan Teke wrote:
>
>Can anyone tell me if basic has a standard input. I want to read the
>standard input within a basic program. Like stdin with C.


It depends on the BASIC compiler. QuickBasic, for example, does not use
stdin when using the regular INPUT command. For some reason, even opening
a file named "CON" doesn't seem to work like you would expect.
--
Judson McClendon This is a faithful saying and worthy of all
Sun Valley Systems acceptance, that Christ Jesus came into the
judm...@mindspring.com world to save sinners (1 Timothy 1:15)
(please remove numbers from email id to respond)


Amos Bieler

unread,
Apr 23, 1998, 3:00:00 AM4/23/98
to

>Orhan Teke wrote:
>
>Can anyone tell me if basic has a standard input. I want to read the
>standard input within a basic program. Like stdin with C.

>

It depends on the BASIC compiler. QuickBasic uses the keyword COMMAND$ to
return the command line. I haven't tested it but it should also return
"piped" and "redirected" stuff, too.

Amos Bieler

0 new messages