comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin" <martin.dowie@afraidof.co.uk>
Subject: Re: programming question . . .
Date: 17 Sep 2006 16:12:01 -0700
Date: 2006-09-17T16:12:01-07:00	[thread overview]
Message-ID: <1158534721.332630.309140@b28g2000cwb.googlegroups.com> (raw)
In-Reply-To: <1158526988.287711.242070@m73g2000cwd.googlegroups.com>

What compiler/OS are you using?

If you are using GNAT GPL "2005" or "2006" then it comes with
Ada.Directories which will help. For other compilers, try
http://www.martin.dowie.btinternet.co.uk/ and download a version of
Ada.Directories from there. There is a "rename" procedure in this
package.

You could look at using Ada.Strings.Maps for working out the new name
but it's probably overkill. Just loop over the range of the String
object and check/replace as required.

Cheers
-- Martin

lakeoftea wrote:
> I'm trying to write a program that will look at a directory and take
> the "_"'s out of all of the files and replace them with spaces.  this
> seems like an easy program but i haven't used ada since freshman year
> and i'm kind of stumped.  any ideas.  no this is not for an assignment
> :)
> 
> thanks!




  reply	other threads:[~2006-09-17 23:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-17 21:03 programming question . . lakeoftea
2006-09-17 23:12 ` Martin [this message]
2006-09-18  6:48 ` Maciej Sobczak
2006-09-23 19:22 ` Jacob Sparre Andersen
2006-09-23 20:57   ` Dr. Adrian Wrigley
2006-09-25 10:28     ` Jacob Sparre Andersen
replies disabled

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