Create FileParser.java

I do not own this source file. I took it from here: http://elf.cs.pub.ro/poo/teme/tema1.