* File handling
@ 1997-10-11 0:00 Hannu �rn
1997-10-13 0:00 ` Kenneth W. Sodemann
1997-10-15 0:00 ` Matthew Heaney
0 siblings, 2 replies; 3+ messages in thread
From: Hannu �rn @ 1997-10-11 0:00 UTC (permalink / raw)
Is the package Ada.Text_IO only way to handle files?
Are there procedures like Turbo Pascal's BlockRead and
BlockWrite in Ada 95?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: File handling
1997-10-11 0:00 File handling Hannu �rn
@ 1997-10-13 0:00 ` Kenneth W. Sodemann
1997-10-15 0:00 ` Matthew Heaney
1 sibling, 0 replies; 3+ messages in thread
From: Kenneth W. Sodemann @ 1997-10-13 0:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 495 bytes --]
Hannu �rn wrote in message <343F4BE1.F669CC82@norssi.helsinki.fi>...
>Is the package Ada.Text_IO only way to handle files?
No. Check out sequential_io and direct_io in section A.8 of the Ada95 LRM.
>Are there procedures like Turbo Pascal's BlockRead and
>BlockWrite in Ada 95?
--
with Std_Disclaimer; use Std_Disclaimer;
Signature.Put (Name => Ken Sodemann,
E_Mail => kwsodema@avistainc.com
Web => http://www.pcii.net/~stuffel
Company_Web => http://www.avistainc.com);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: File handling
1997-10-11 0:00 File handling Hannu �rn
1997-10-13 0:00 ` Kenneth W. Sodemann
@ 1997-10-15 0:00 ` Matthew Heaney
1 sibling, 0 replies; 3+ messages in thread
From: Matthew Heaney @ 1997-10-15 0:00 UTC (permalink / raw)
In article <343F4BE1.F669CC82@norssi.helsinki.fi>, horn@norssi.helsinki.fi
wrote:
>Is the package Ada.Text_IO only way to handle files?
>Are there procedures like Turbo Pascal's BlockRead and
>BlockWrite in Ada 95?
I haven't done any Turbo Pascal programming in a while, so I'm not sure
what you mean by BlockRead and BlockWrite. But there are other I/O
pacakges in Ada:
Ada.Sequential_IO
Ada.Direct_IO
Ada.Streams.Stream_IO
One of the strengths of Ada is that, by a very deliberate design choice,
I/O wasn't built into the language (they didn't want to marry the language
to I/O technology that would become obsolete in a few years; see the Ada 83
Rationale for the gory details). Yes, Ada comes with predefined I/O
packages (the ones listed above), but if these don't meet your needs then
you can just roll your own I/O package that does what you exactly what you
want.
--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
<mailto:matthew_heaney@acm.org>
(818) 985-1271
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-10-15 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-11 0:00 File handling Hannu �rn
1997-10-13 0:00 ` Kenneth W. Sodemann
1997-10-15 0:00 ` Matthew Heaney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox