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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.68.212.130 with SMTP id nk2mr2790355pbc.1.1378396817066; Thu, 05 Sep 2013 09:00:17 -0700 (PDT) X-Received: by 10.49.24.161 with SMTP id v1mr61832qef.37.1378396816659; Thu, 05 Sep 2013 09:00:16 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder02.blueworldhosting.com!news.glorb.com!y3no3465568pbx.0!news-out.google.com!rn2ni63626pbc.1!nntp.google.com!n2no22924197pbg.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 5 Sep 2013 09:00:16 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=86.173.125.168; posting-account=pmkN8QoAAAAtIhXRUfydb0SCISnwaeyg NNTP-Posting-Host: 86.173.125.168 References: <43c22997-0bb7-4ad6-879f-c5b2d8584f8a@googlegroups.com> <80934511-70fb-4f2b-ac4a-30ce5fd4a34c@googlegroups.com> <544893cf-82aa-4f83-9147-f2d6c8437ffa@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3a03b029-420d-4a4d-81ff-dbcbc0b3df37@googlegroups.com> Subject: Re: Calling a File for Encryption from outside of the Main Ada-95 Holding Folder. From: Austin Obyrne Injection-Date: Thu, 05 Sep 2013 16:00:17 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:17136 Date: 2013-09-05T09:00:16-07:00 List-Id: On Thursday, September 5, 2013 12:33:32 PM UTC+1, Simon Wright wrote: > Austin Obyrne writes: > I have tried Word Pad= also and iit works equally well - but as you say > the file extension .doc= is taboo - must not be used - .dat is fine It's not the file extension, it= 's the contents of the file! (I realise that many people would have trouble= making the distinction). > Summarising. > > Users can use 'Notepad' with .= dat file extension say > Users can use 'Wordpad' with .dat file extension I= t would be more normal to use .txt > If users insist on using MS Word then = it must go through the AdaGIDE > editor with a .dat file extension (if any)= . Or Notepad, or Wordpad .. what you are doing is Copying the contents of t= he Word document, and Pasting them into an editor which doesn't understand = Word's style and format information and only accepts the raw characters. Wh= ich is all that you are interested in. I don't think it's entirely reasonab= le from your users' point of view to only be able to deal with plain text f= iles, though; for example, what about images? (.jpg, etc) which are going t= o give you the same problem. Perhaps you could consider reading the files u= sing Ada.Streams.Stream_IO? Example use in procedure Output_Contents starti= ng at line 182 of http://goo.gl/wcqkop Could I take (.txt) for everything as standard in future and not bother wit= h (.dat) even - I would like to be able to imply this as a caveat to my use= rs - what do you say O' Wise One? AdaGIDE will always accept .txt ??? I would like to use just one rule. You guys have really sorted things for me - I am truly grateful for your he= lp. Knowing about the file extensons drop down menu options menu is just marvel= lous. Grateful to everybody. Austin