Lightweight, portable and easy to integrate C directory and file reader