Texas Instruments interview question

Create a program to search any file on the computer using java or C++, based on file handling