Simplified file handling. Does not work with directories