Add required settings to pom for newer Maven versions and .gitignore Eclipse generated files

Hi!

Thank you for the file2string method comparison. I found it browsing StackOverflow looking for the various ways of reading a text file in Java.

To run the Maven project using Maven 3 two additional settings are required in the POM. This pull request adds those settings, and also .gitignores the compiled output and the Eclipse generated files. Perhaps this can be of use to others who run into your sample project?