🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16990

"Touch" file

#16990
From: Mark Dutch
Date: Sun, 13 Apr 2003 07:23
4 lines
1246 bytes
I want to write a function to "touch" a file or set of files - ie. 
change the date & time of the specified file(s) without otherwise 
altering them.  Is there an API call to handle this type of thing? Does 
anyone have an example of how to do this?  TIA
Technical Details
Message-ID: <3E99107F.5040002@removethis.intermtech.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,82b2b05927057032,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-13 00:26:13 PST
Message-ID: <3E99107F.5040002@removethis.intermtech.com.au>
Date: Sun, 13 Apr 2003 17:23:43 +1000
From: Mark Dutch <markd@removethis.intermtech.com.au>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: "Touch" file
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 210.49.89.46
X-Trace: newsgroups.borland.com 1050218481 210.49.89.46 (13 Apr 2003 00:21:21 -0700)
Lines: 5
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail