Create a basic English-French-Spanish dictionary.
The definitions will be stored in two files. The first file will be named "es-en" and will contain the translations from Spanish to English, such as
uno=one
dos=two
tres=three
The second file will be named "es-fr" and will contain the translations from Spanish to French, such as
uno=un
dos=deux
tres=trois
Then, the user will choose which languages to translate to and from:
1.- Spanish to English
2.- English to Spanish
3.- French to English
4.- English to French
5.- Spanish to French
6.- French to Spanish
And will enter sentences, to obtain their translation, until they press Enter on an empty line. For example, if they choose "English to French" (note that there is no direct translation in any file), the results would be:
word? one
Translation: un
word? three
Translation: trois
word? happy
Translation: [not found]
word?
Bye!