reads contents of files