* File I/O
@ 2000-09-28 0:00 stiletto
2000-09-29 0:00 ` Preben Randhol
2000-09-29 3:15 ` tmoran
0 siblings, 2 replies; 4+ messages in thread
From: stiletto @ 2000-09-28 0:00 UTC (permalink / raw)
Hello All!
I am a newbie to Ada and have a question. How can I read a file and
write to a file in Ada? And what package do I need to include?
Thanks in advance.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: File I/O
2000-09-28 0:00 File I/O stiletto
@ 2000-09-29 0:00 ` Preben Randhol
2000-09-29 0:00 ` Mathias Dolidon
2000-09-29 3:15 ` tmoran
1 sibling, 1 reply; 4+ messages in thread
From: Preben Randhol @ 2000-09-29 0:00 UTC (permalink / raw)
On Thu, 28 Sep 2000 19:30:07 -0400, stiletto@ryuji.net wrote:
>
>Hello All!
>
>I am a newbie to Ada and have a question. How can I read a file and
>write to a file in Ada? And what package do I need to include?
Look at:
http://adahome.com/Tutorials/Lovelace/lesson9.htm
But I recommend that you get/loan an Ada text book. On-line resources
can be found here:
http://www.adapower.com/learn/
http://adahome.com/Tutorials/Lovelace/lovelace.htm
http://goanna.cs.rmit.edu.au/~dale/ada/aln.html
--
Preben Randhol - Ph.D student - http://www.pvv.org/~randhol/
"i too once thought that when proved wrong that i lost somehow"
- i was hoping, alanis morisette
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: File I/O
2000-09-29 0:00 ` Preben Randhol
@ 2000-09-29 0:00 ` Mathias Dolidon
0 siblings, 0 replies; 4+ messages in thread
From: Mathias Dolidon @ 2000-09-29 0:00 UTC (permalink / raw)
Preben Randhol a �crit :
>
> On Thu, 28 Sep 2000 19:30:07 -0400, stiletto@ryuji.net wrote:
> >
> >Hello All!
> >
> >I am a newbie to Ada and have a question. How can I read a file and
> >write to a file in Ada? And what package do I need to include?
>
> Look at:
> http://adahome.com/Tutorials/Lovelace/lesson9.htm
>
> But I recommend that you get/loan an Ada text book. On-line resources
> can be found here:
What is also really useful is the reference manual. Once you have the
basis knoweledge, you can learn everything else with the RM.
>
> http://www.adapower.com/learn/
>
> http://adahome.com/Tutorials/Lovelace/lovelace.htm
> http://goanna.cs.rmit.edu.au/~dale/ada/aln.html
>
> --
> Preben Randhol - Ph.D student - http://www.pvv.org/~randhol/
> "i too once thought that when proved wrong that i lost somehow"
> - i was hoping, alanis morisette
--
http://www.mdlabs.ovh.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: File I/O
2000-09-28 0:00 File I/O stiletto
2000-09-29 0:00 ` Preben Randhol
@ 2000-09-29 3:15 ` tmoran
1 sibling, 0 replies; 4+ messages in thread
From: tmoran @ 2000-09-29 3:15 UTC (permalink / raw)
>How can I read a file and write to a file in Ada?
What kind of file?
For text files, consisting of variable length lines separated by CR
or LF, use Ada.Text_IO
For files consisting of a homogenous series of binary records,
look at Ada.Sequential_IO
For files consisting of a homogenous set of binary records, randomly
accessible, look at Ada.Direct_IO
For files with heterogenous binary stuff, look at Ada.Streams.Stream_IO
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-09-29 3:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-28 0:00 File I/O stiletto
2000-09-29 0:00 ` Preben Randhol
2000-09-29 0:00 ` Mathias Dolidon
2000-09-29 3:15 ` tmoran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox