adds a function getStringFromFile

I needed to use this in another project and i thought it might be a good thing to have here aswell.

This is officially my first fork pull-request, so check the code carefully :P. 

:fire: :fire: :fire: __________ :fire_engine: