Implemented a simple filename reader