If I have a 40,000 word dictionary in the file:
LatinDictionary.txt
How would I output that file to the screen?
sfurlow2 0 Light Poster
Recommended Answers
Jump to PostFor simplicity sake:
#include <fstream> #include <iostream> #include <string> int main() { std::ifstream in ( "myfile" ); if ( in ) { std::string word; while ( in>> word ) std::cout<< word <<'\n'; } }
All 3 Replies

iamthwee
Narue commented: Master of the obvious. ;) -4
sfurlow2 0 Light Poster
Narue 5,707 Bad Cop Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.