Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: Standard in...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 6 Topic 8205 of 8767
Post > Topic >>

Re: Standard input

by Charles Coldwell <coldwell@[EMAIL PROTECTED] > May 5, 2008 at 02:16 AM

Arjen Markus <arjen.markus@[EMAIL PROTECTED]
> writes:

>
> Cute solution, but here are a few caveats:
>
> 1. The device file "/dev/tty" exists or is usuable for this purpose on
>    UNIX, Linux and (I assume, I have no access to it) OSX and systems
>    like that.

Quoting the OP

>> > The program package I am using executes programs in the following
>> > way (under Unix): program.bin < program.input

> 3. The second loop does not terminate: there is no end-of-file
> condition,
>    even with an empty line.

Try "ctrl-D"

Chip

-- 
Charles M. "Chip" Coldwell
"Turn on, log in, tune out"
GPG Key ID: 852E052F
GPG Key Fingerprint: 77E5 2B51 4907 F08A 7E92  DE80 AFA9 9A8F 852E 052F
 




 6 Posts in Topic:
Standard input
"Tim Springer"   2008-05-02 13:33:36 
Re: Standard input
Charles Coldwell <cold  2008-05-03 13:52:18 
Re: Standard input
Arjen Markus <arjen.ma  2008-05-04 04:43:41 
Re: Standard input
Charles Coldwell <cold  2008-05-05 02:16:28 
Re: Standard input
Arjen Markus <arjen.ma  2008-05-05 00:14:12 
Re: Standard input
Charles Coldwell <cold  2008-05-05 10:40:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 12:53:15 CDT 2008.