From: Dale Stanbrough <dale@rmit.edu.au>
Subject: Re: Print
Date: 16 Mar 1995 05:49:24 GMT
Date: 1995-03-16T05:49:24+00:00 [thread overview]
Message-ID: <3k8jh4$c21@goanna.cs.rmit.edu.au> (raw)
In-Reply-To: 3k8g1e$8ri@goanna.cs.rmit.edu.au
Subject: Print
From: Scott Malcolm Smedley, s9406160@yallara.cs.rmit.edu.au
Date: 16 Mar 1995 04:49:50 GMT
In article <3k8g1e$8ri@goanna.cs.rmit.edu.au> Scott Malcolm Smedley,
s9406160@yallara.cs.rmit.edu.au writes:
>How can I "print" an array of integers/characters/strings etc
>in ADA?? I mean "print" as in Printer.
>
>For example, let's say I had an array(1..10) of integers.
>How could I print each integer one underneath the other on
>a printer?
>
>I'm not 2 sure whether it matters or not, but I am using ADA on
>a DOS machine, not UNIX.
>
>Thanks 4 any help U can give...
>
>Scott
>
>s9406160@yallara.cs.rmit.edu.au
The Meridian Ada compiler manual has the following information...
-----start-quote--------------------------
Special file names
Note that there are special file names that refer to
non-disk devices
CON\x7f - the console
AUX - serial port1
...
LPT1 - parallel port 1
PRN - same as LPT1
...
To open one of the special file names for output, use
create with mode out_file as in the following example.
with text_io; use text_io;
procedure printer_demo is
f:file_type;
printer:constant string := "PRN";
begin
create(file => f, name => printer);
put_line(f, "this is a test");
new_page(f);
close(f);
end printer_demo;
-------------------------------------------
Your mileage may vary depending upon what networks you are
attached to.
next prev parent reply other threads:[~1995-03-16 5:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-16 4:49 Print Scott Malcolm Smedley
1995-03-16 5:49 ` Dale Stanbrough [this message]
1995-03-17 6:06 ` Print MenTaT - !Productions
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox