jonas,
Pass the file name you want to read as Input parameter to main pgm like
>
java pgmname "input file".
In your main function read it using args[0] into a string say strFile, where args[] is the main() function argument.
In BufferedReader constructor, you say -
BufferedReader br = new BufferedReader(strFile);
Hope this helps you out.