resource file reader