comp.lang.ada
 help / color / mirror / Atom feed
* File I\O
@ 2000-04-25  0:00 Gavin Bowra
  2000-04-26  0:00 ` Gavin Bowra
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gavin Bowra @ 2000-04-25  0:00 UTC (permalink / raw)


Hi
   I need a bit of a pointer on File I\Os Basically I have to create and
read a file. My problem is that I can't get a handle on how it is done, I
have the LRM and Rendezvous with Ada 95 but I can't follow the explanation
or example ( I must be thick or something ;-) ) If there is anybody out
there who can explain this to an IDIOT so he can understand would be greatly
appreciated.

David

--
When all else fails, read the instructions






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: File I\O
  2000-04-25  0:00 File I\O Gavin Bowra
@ 2000-04-26  0:00 ` Gavin Bowra
  2000-04-27  0:00 ` Simon Pilgrim
  2000-04-27  0:00 ` Marin D. Condic
  2 siblings, 0 replies; 4+ messages in thread
From: Gavin Bowra @ 2000-04-26  0:00 UTC (permalink / raw)


Hi,
    Text file required....but saved to A:\.

procedure create (file: in out  File_type
                             mode: in     File_mode := out_file;
                             name: in      String        :=  "   ";
                             form:  in      String        :=  "   ");


Last night I was trying to get this to work, if you could maybe point out
ifthis will work.

      Procedure File_Buy  is
      Sponsors : File_Type;

      Begin --File_Buy

      New_Line(2);
      Put("                Please enter the file name");


      Create(In_Sponsors, Out_File, "A:\Sponsors.dat");

      Close (Sponsors);

      End File_Buy;

Gavin Bowra <bowmac@iinet.net.au> wrote in message
news:3905a5b7$0$28047@echo-01.iinet.net.au...
> Hi
>    I need a bit of a pointer on File I\Os Basically I have to create and
> read a file. My problem is that I can't get a handle on how it is done, I
> have the LRM and Rendezvous with Ada 95 but I can't follow the explanation
> or example ( I must be thick or something ;-) ) If there is anybody out
> there who can explain this to an IDIOT so he can understand would be
greatly
> appreciated.
>
> David
>
> --
> When all else fails, read the instructions
>
>






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: File I\O
  2000-04-25  0:00 File I\O Gavin Bowra
  2000-04-26  0:00 ` Gavin Bowra
@ 2000-04-27  0:00 ` Simon Pilgrim
  2000-04-27  0:00 ` Marin D. Condic
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Pilgrim @ 2000-04-27  0:00 UTC (permalink / raw)




Gavin Bowra wrote:
> 
> Hi
>    I need a bit of a pointer on File I\Os Basically I have to create and
> read a file. My problem is that I can't get a handle on how it is done, I
> have the LRM and Rendezvous with Ada 95 but I can't follow the explanation
> or example ( I must be thick or something ;-) ) If there is anybody out
> there who can explain this to an IDIOT so he can understand would be greatly
> appreciated.


There are some examples on http://www.AdaPower.com/ under the "Source
Code" section.  If you still have problems post your source code, with
details of the environment you are using it in, and a description of the
specific problem.

-- 
Regards,
Simon




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: File I\O
  2000-04-25  0:00 File I\O Gavin Bowra
  2000-04-26  0:00 ` Gavin Bowra
  2000-04-27  0:00 ` Simon Pilgrim
@ 2000-04-27  0:00 ` Marin D. Condic
  2 siblings, 0 replies; 4+ messages in thread
From: Marin D. Condic @ 2000-04-27  0:00 UTC (permalink / raw)


Gavin Bowra wrote:
> 
> Hi
>    I need a bit of a pointer on File I\Os Basically I have to create and
> read a file. My problem is that I can't get a handle on how it is done, I
> have the LRM and Rendezvous with Ada 95 but I can't follow the explanation
> or example ( I must be thick or something ;-) ) If there is anybody out
> there who can explain this to an IDIOT so he can understand would be greatly
> appreciated.
> 
On my web page (http://www.mcondic.com/) under Ada Programming, you can
find a bunch of small programs called "GNAT Esamples". I used these to
teach an intro to Ada level in-house class. There are a few small, self
contained programs in that set which cover various forms of File IO.
They should all compile and run successfully. If not, send me an e-mail.

MDC
-- 
======================================================================
Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/
Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m
Visit my web site at:  http://www.mcondic.com/

"I'd trade it all for just a little more"
    --  Charles Montgomery Burns, [4F10]
======================================================================




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-04-27  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-25  0:00 File I\O Gavin Bowra
2000-04-26  0:00 ` Gavin Bowra
2000-04-27  0:00 ` Simon Pilgrim
2000-04-27  0:00 ` Marin D. Condic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox