C++ How do I read from a txt file into an array?

magicaxis

New member
I have text file of city names, one name per row. i need to import them to the cities[32][16] array, in order to print random ones from the list. I know about fstream, im just unsure of the syntax needed within the txt file itself.
 
Back
Top