Sparkz0629
Expert Member
Right, so i know my title isn't exactly correct, but i don't know how to phrase my problem shortly.
But here's basically it.
I need to read from a file that has a naming convention like so
ABC_DEF_GHI_12-10-2010.txt.
I am using a BufferedReader aswell as a file reader.
The problem is that my code needs to be able to read all the files that have the above mentioned name, excluding the date (There will only be one file that meets this criteria in the fiolder), so it needs to read from:
ABC_DEF_GHI_*.txt.
How would i put this in code, because i tried like this:
BufferedReader in = new BufferedReader(new FileReader("C:/ABC_DEF_GHI_*.txt"));
But this then throws the follwoing error:
The filename, directory name, or volume label syntax is incorrect
Is there some way for me to do this?
Thanks... and sorry if the explanation was a bit dodge...
But here's basically it.
I need to read from a file that has a naming convention like so
ABC_DEF_GHI_12-10-2010.txt.
I am using a BufferedReader aswell as a file reader.
The problem is that my code needs to be able to read all the files that have the above mentioned name, excluding the date (There will only be one file that meets this criteria in the fiolder), so it needs to read from:
ABC_DEF_GHI_*.txt.
How would i put this in code, because i tried like this:
BufferedReader in = new BufferedReader(new FileReader("C:/ABC_DEF_GHI_*.txt"));
But this then throws the follwoing error:
The filename, directory name, or volume label syntax is incorrect
Is there some way for me to do this?
Thanks... and sorry if the explanation was a bit dodge...