From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,913c345bb1f6b908 X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: Text Files Date: 2000/05/23 Message-ID: <392AF852.93E0EDBE@quadruscorp.com>#1/1 X-Deja-AN: 626380848 Content-Transfer-Encoding: 7bit References: <8gdguu$f9v$1@news.cowan.edu.au> <959088712.853876@hearts.q-net.net.au> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 23 May 2000 18:33:39 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-05-23T18:33:39+00:00 List-Id: Cameron McShane wrote: > When I try and get user input for the name of the string, ie > > Text_io.get_line(Filename, Last); > Text_Io.Create( > File => In_Data, > Mode => Text_Io.Out_File, > Name => Filename(1..Last)); > > it doesn't work > This looks like it ought to work presuming you have declared everything properly. What compiler/version/OS are you using? What you should try is echoing out the Filename string so you can see if you are, in fact, reading everything you think you are reading. For example, if the string variable is too short, you may not be getting the full name. There is a chance that you may be getting extraneous characters - perhaps left over from some previous input line that you did not fully read. In any case, make sure that you are reading what you *think* you are reading and that may help you solve the problem. If not, strip down the program to *just* the declarations and code needed to read the string & create the file. If this small sample doesn't work, then post the code. 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] ======================================================================