display name of file when searching data?

hi All,i write a coding that i want to read data in file and i get it.after that i want to display a name of file that contain the data.can anybody suggest how to get it?thanks..
[213 byte] By [rieziesa] at [2007-11-27 7:29:29]
# 1
Some sort of black magic?I mean the obvious question would be "Why don't you know the name of the file you are reading?" and i think the answer to that would be helpful.
cotton.ma at 2007-7-12 19:09:38 > top of Java-index,Java Essentials,Java Programming...
# 2
thanks for the reply. but i mean if there were many file..Message was edited by: riezies
rieziesa at 2007-7-12 19:09:38 > top of Java-index,Java Essentials,Java Programming...
# 3
I still don't get the question. If there are many files, how do you pick one to read from? Or if you read from every one in turn, how do you manage to do that? Whatever you do, once you've got a file to read from, getting its name shouldn't be a lot of trouble.
OleVVa at 2007-7-12 19:09:38 > top of Java-index,Java Essentials,Java Programming...