comp.lang.ada
 help / color / mirror / Atom feed
From: Austin Obyrne <austin.obyrne@hotmail.com>
Subject: Re: Calling a File for Encryption from outside of the Main Ada-95 Holding Folder.
Date: Thu, 5 Sep 2013 08:46:44 -0700 (PDT)
Date: 2013-09-05T08:46:44-07:00	[thread overview]
Message-ID: <e19c731b-69d7-49eb-8fd6-cfd584102fba@googlegroups.com> (raw)
In-Reply-To: <lyk3ivjyer.fsf@pushface.org>

On Thursday, September 5, 2013 12:33:32 PM UTC+1, Simon Wright wrote:
> 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

Many thanks Simon,

I think I will leave images for the present - just security of information will be all for now - frankly I dont know enough about images yet but anything that can be reduced to an alpahnumeric can be encrypted by my cipher.

Can I come back to you sometime in the future on this one.

Regards - Austinn

  reply	other threads:[~2013-09-05 15:46 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
2013-09-05 15:46               ` Austin Obyrne [this message]
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