comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Calling a File for Encryption from outside of the Main Ada-95 Holding Folder.
Date: Thu, 05 Sep 2013 12:33:32 +0100
Date: 2013-09-05T12:33:32+01:00	[thread overview]
Message-ID: <lyk3ivjyer.fsf@pushface.org> (raw)
In-Reply-To: 544893cf-82aa-4f83-9147-f2d6c8437ffa@googlegroups.com

Austin Obyrne <austin.obyrne@hotmail.com> 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

It 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
the Word document, and Pasting them into an editor which doesn't
understand Word's style and format information and only accepts the raw
characters. Which is all that you are interested in.

I don't think it's entirely reasonable from your users' point of view to
only be able to deal with plain text files, though; for example, what
about images? (.jpg, etc) which are going to give you the same
problem. Perhaps you could consider reading the files using
Ada.Streams.Stream_IO?

Example use in procedure Output_Contents starting at line 182 of
http://goo.gl/wcqkop


  reply	other threads:[~2013-09-05 11:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04 11:10 Calling a File for Encryption from outside of the Main Ada-95 Holding Folder Austin Obyrne
2013-09-04 19:37 ` Austin Obyrne
2013-09-04 19:47   ` Eryndlia Mavourneen
2013-09-04 20:23     ` Austin Obyrne
2013-09-04 20:37     ` Austin Obyrne
2013-09-04 21:31       ` Austin Obyrne
2013-09-05  5:39         ` Simon Wright
2013-09-05  7:16           ` Austin Obyrne
2013-09-05  7:56           ` Austin Obyrne
2013-09-05 11:33             ` Simon Wright [this message]
2013-09-05 15:46               ` Austin Obyrne
2013-09-05 16:00               ` Austin Obyrne
2013-09-05 16:08                 ` Eryndlia Mavourneen
2013-09-05 16:50                   ` Austin Obyrne
2013-09-05 17:42                     ` Eryndlia Mavourneen
2013-09-05 14:40         ` Eryndlia Mavourneen
2013-09-05 15:38           ` Austin Obyrne
2013-09-05  3:16 ` Dennis Lee Bieber
2013-09-05  6:57   ` Austin Obyrne
replies disabled

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