🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #721

Re: how do I get a file listing?

#721
From: David Crimmins
Date: Fri, 26 May 2000 00:00
25 lines
1119 bytes
Check out the list(FilenameFilter) method in the File class

HTH
David

"Greg" <gsimon@bigpond.net.au> wrote in message
news:6amX4.96$Qu.790@news-server.bigpond.net.au...
> I want to be able to list all the files in a directory that have a certain
> pattern in the filename.
>
> For example say I have a directory that had these files:
>
> john_results.dat
> fred_results.dat
> tom_result.dat
> ...
>
> I know they are all going to have "_results.dat" in the filenames but how
> would I go about getting a list of those files?
>
> thanks for any help.
>
> Greg
>
>
Technical Details
Message-ID: <392e59a7@pink.one.net.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6amX4.96$Qu.790@news-server.bigpond.net.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,736c30f73ce692c6
X-Google-Attributes: gid10d6db,public
From: "David Crimmins" <dcrim@one.net.au>
Subject: Re: how do I get a file listing?
Date: 2000/05/26
Message-ID: <392e59a7@pink.one.net.au>
X-Deja-AN: 627536739
References: <6amX4.96$Qu.790@news-server.bigpond.net.au>
X-Trace: 26 May 2000 21:01:59 +1000, 61.12.72.36
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: aus.computers.java
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.5600