fully realized file reading system