0

For my basics of programming project number 2, i have to construct a small app that teaches the user english words and expressions. Apart from the source code, my project also needs two .txt files attached. Both of the txt files contain 100 words, in polish and english respectively. I know how to input words from the file into a string array, however i have trouble with expressions. For example; "To kill two birds with one stone" has to be just one element of the array i'll be using in the program. Each of the words/expressions in txt file is contained within one line like this:

Dog
Cat
Woman
By the skin off their teeth
Lion

Is there a function in fstream library that conveniently allows me to accomplish my task?

0 Answers0