search file within a directory

hi there... i need to search for a file in a directory. but when i execute it, instead of just typing news.txt i need to type C:/news.txt why is that so when i already concat it.. here is the code and thank you in advance.

public static void main(String[] args) throws IOException{

BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

System.out.println("Enter file to search : ");

File filename = new File(in.readLine());

if (filename.exists()){

String b = ("C:/").concat(filename.getName());

System.out.println("File name : " + b + " " +"found");

}

else{

Sender sm = new Sender();

sm.doSend();

}

}

[708 byte] By [n_dilaha] at [2007-11-26 17:42:57]
# 1
So, what's your problem?
CaptainMorgan08a at 2007-7-9 0:11:08 > top of Java-index,Java Essentials,New To Java...
# 2
my problem is that when i run the program...i have to type C:/news.txt to search for the file...but this is not i want it to be i want to search by just typing news.txt..understand? thank you
n_dilaha at 2007-7-9 0:11:08 > top of Java-index,Java Essentials,New To Java...
# 3
isn't it C:\?
jun.yeea at 2007-7-9 0:11:08 > top of Java-index,Java Essentials,New To Java...
# 4
it is ok i solve it already thanks alot..
n_dilaha at 2007-7-9 0:11:08 > top of Java-index,Java Essentials,New To Java...