simple script for caching files
added support for marginal additions new encoding and new line spaces