reads words from resource file