comp.lang.ada
 help / color / mirror / Atom feed
From: "Gavin Bowra" <bowmac@iinet.net.au>
Subject: Re: File I\O
Date: 2000/04/26
Date: 2000-04-26T00:00:00+00:00	[thread overview]
Message-ID: <39063da7$0$30515@echo-01.iinet.net.au> (raw)
In-Reply-To: 3905a5b7$0$28047@echo-01.iinet.net.au

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
>
>






  reply	other threads:[~2000-04-26  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-25  0:00 File I\O Gavin Bowra
2000-04-26  0:00 ` Gavin Bowra [this message]
2000-04-27  0:00 ` Marin D. Condic
2000-04-27  0:00 ` Simon Pilgrim
replies disabled

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