I need help on how I could open a file from my code and get the words that are stored in the file 1 by 1 and then display it and that would be the word that would be typed by the player.Example:file name: words.txtcontent: dog cat appleThe code would printType the word:dogthen after the player would type the correct word the next word will appear, in the example: catI'm also thinking on how I could check if the letters typed are correct still don't have much idea thoughHow can I store the word from a file to a string? thanks