Create a dictionary from a text file and display it
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jan 19, 2014, 7:27 AM EST
First create this text file, capitals.txt, without leaving any blank lines:
Now compile and run this console application:
As expected, the output is: