I have a text file (called words.txt) that contains 8 words. It goes something like this:
store
apple
tennis
etc
and I am trying to copy just one string so that the user can guess one of the array. This is basically for a Hangman project. My question is, how can I use strcpy to get one word at a time from the file? I'm thinking the code should be like this:
strcpy(words.txt, FileString)
Is this the right function to copy the string of arrays from the txt file?