M
Michael Lester
Question: How to copy user designated text file containing vocabulary list,translate its contents, and save the new file to the same directory as original file with a new file extension.
Details: I am new to programming. I have a compiler (Code-Blocks 12.11). Asan exercise, I would like help to write a program that will allow a student to enter a text file location and file name, and the desired output language. The program will then translate the text in the file into one of a dozen or more languages using a csv vocabulary file with the vocabulary words in rows and the translations in columns and save the new file as a text file to the same directory with a new file extension. The program knows the source language from the file extension of the source file.
Thanks,
Michael
Sample original text file [Vocab List - Animals.eng]
English Vocabulary List
Animals
Mrs. Howard
Language Lab
Summer 2013
Start
alligator
ant
bear
bee
bird
camel
cat
cheetah
chicken
chimpanzee
cow
crocodile
deer
....
End
*****
Sample output file [Vocab List - Animals.spa]
Spanish Vocabulary List
Animals
Mrs. Howard
Language Lab
Summer 2013
Start
Alligator
oso
aves
abeja
camello
cat
pollo
chimpancé
chita
vacacocodrilo
ciervos
....
End
Details: I am new to programming. I have a compiler (Code-Blocks 12.11). Asan exercise, I would like help to write a program that will allow a student to enter a text file location and file name, and the desired output language. The program will then translate the text in the file into one of a dozen or more languages using a csv vocabulary file with the vocabulary words in rows and the translations in columns and save the new file as a text file to the same directory with a new file extension. The program knows the source language from the file extension of the source file.
Thanks,
Michael
Sample original text file [Vocab List - Animals.eng]
English Vocabulary List
Animals
Mrs. Howard
Language Lab
Summer 2013
Start
alligator
ant
bear
bee
bird
camel
cat
cheetah
chicken
chimpanzee
cow
crocodile
deer
....
End
*****
Sample output file [Vocab List - Animals.spa]
Spanish Vocabulary List
Animals
Mrs. Howard
Language Lab
Summer 2013
Start
Alligator
oso
aves
abeja
camello
cat
pollo
chimpancé
chita
vacacocodrilo
ciervos
....
End