You didn't include the Modify class. How are we to determine where the problem is? Or did you want to get the file name from the user inside the method? (1 not a great idea and 2 it looks like you...