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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bbccabff6758b153 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 03 May 2006 11:22:20 -0500 Date: Wed, 03 May 2006 17:22:19 +0100 From: Martin Dowie User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: operations on files and directories References: <1146667325.606250.177290@y43g2000cwc.googlegroups.com> In-Reply-To: <1146667325.606250.177290@y43g2000cwc.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 86.131.215.95 X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-bF5O1aVZSN6Qz/RmFIt1KxVNK6bbNPsh5eAXqxjmiBSTjB72X4AQZQ02nLKKYgSl0mI1txPD+0W792v!PJ0UzruEJX5LrHe7kSoYdEFsIas7TEERMRYS4b/y1ZvrJze5CrPdoWx6b8/Eqg== X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:4038 Date: 2006-05-03T17:22:19+01:00 List-Id: evangeli@cnam.fr wrote: > Hello, > how would you do to > 1 - check if two files have the same content You have to do that yourself or use some other library. > 2 - check if two files have the same date Same date for what? Creation, Modification? Access? If it's modification time then use one of the overloaded "Modification_Time" subprograms. If it's creation/access then you could check if your compiler provides the optional standard package "Ada.Directories.Information" and if it is good enough to provide functions to access those. See: http://www.martin.dowie.btinternet.co.uk and specifically: http://www.martin.dowie.btinternet.co.uk/Directories/adabrowse/ada-directories-information.html Cheers -- Martin