Article View: borland.public.jbuilder.java.api
Article #2099Deleting some files with a given extension
From: Laurent Souriau
Date: Thu, 14 Jun 2001 10:22
Date: Thu, 14 Jun 2001 10:22
21 lines
2100 bytes
2100 bytes
Hi eveyone,
I currently have the following problem :
I have a directory, let ' s say : d:\Temp\
containing some files with different names.
The files have the following syntax names : RepSQL*.tmp
where * is unknown to the programmer.
I would like to create File toto = new File("d:\Temp\RepSQL*.tmp");
and then delete this file with toto.delete();
How can I do that ?
Thank you for your help
Laurent
E-mail : lsouriau@club-internet.fr
Technical Details
Message-ID:
<9ga32n$t3t$1@s1.read.news.oleane.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-hog.berkeley.edu!ucberkeley!news.maxwell.syr.edu!oleane.net!oleane!nnrp.oleane.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113ae9,ede28868063ec521,start X-Google-Attributes: gid113ae9,public X-Google-Thread: 10568c,ede28868063ec521,start X-Google-Attributes: gid10568c,public X-Google-Thread: f631b,ede28868063ec521,start X-Google-Attributes: gidf631b,public X-Google-Thread: 1089d0,ede28868063ec521,start X-Google-Attributes: gid1089d0,public X-Google-Thread: f74b3,ede28868063ec521,start X-Google-Attributes: gidf74b3,public X-Google-Thread: 10a146,ede28868063ec521,start X-Google-Attributes: gid10a146,public X-Google-ArrivalTime: 2001-06-14 03:20:16 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-hog.berkeley.edu!ucberkeley!news.maxwell.syr.edu!oleane.net!oleane!nnrp.oleane.net!not-for-mail From: "Laurent Souriau" <lsouriau@club-internet.fr> Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.help,comp.lang.java.programmer,de.comp.lang.java,fr.comp.lang.java Subject: Deleting some files with a given extension Date: Thu, 14 Jun 2001 12:22:17 +0200 Organization: Guest of France Telecom Oleane's newsreading service Lines: 23 Message-ID: <9ga32n$t3t$1@s1.read.news.oleane.net> NNTP-Posting-Host: aqsacom.rain.fr X-Trace: s1.read.news.oleane.net 992513944 29821 195.6.24.78 (14 Jun 2001 10:19:04 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Thu, 14 Jun 2001 10:19:04 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400