First thing there is a typo in parameter fileName:
String **fileName** = "This is my file.txt";
String filePath = path + **filename**;
Here is the updated code with your example:
String fileName = "This is my file.txt";
String path = File.separator + "home" + File.separator + "myUsername" + File.separator + "folder" + File.separator;
String filePath = path + fileName;
BufferedInputStream f = new BufferedInputStream(new FileInputStream(filePath));
I am able to read the file with spaces in file name.
Using File.separator we let the code to replace the file separator based
on OS.