As it stands, your code will work if everything is sharing the same directory.
Not sure if it could be a classpath issue, but for now make sure the name of your text file is ppp and not ppp.txt...