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: "Cameron McShane" Subject: Re: Text Files Date: 2000/05/25 Message-ID: <959260098.454638@hearts.q-net.net.au>#1/1 X-Deja-AN: 627147866 Cache-Post-Path: hearts.q-net.net.au!unknown@cazza.aceonline.com.au References: <8gdguu$f9v$1@news.cowan.edu.au> <959088712.853876@hearts.q-net.net.au> <392AF852.93E0EDBE@quadruscorp.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: usenet@news.interpacket.net X-Trace: news.interpacket.net 959260106 65640 203.91.64.133 (25 May 2000 13:08:26 GMT) Organization: Volvo Driver's Club JA! X-MSMail-Priority: Normal X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) NNTP-Posting-Date: 25 May 2000 13:08:26 GMT Newsgroups: comp.lang.ada Date: 2000-05-25T13:08:26+00:00 List-Id: Hey all Thanks everyone for your comments and help It seems that I needed a skip_line before the get_line. ie Text_io.skip_line; Text_io.get_line(Filename, Last); Text_Io.Create( File => In_Data, Mode => Text_Io.Out_File, Name => Filename(1..Last)); I was sure I had tried this already, but obviously I was mistaken. Thanks again Cameron Marin D. Condic wrote in message news:392AF852.93E0EDBE@quadruscorp.com... > 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] > ====================================================================== >