I want to fill two one dimensional arrays from two different .txt files. How would I write a code for that? I tried using the fstream library and the ifstream input command but that doesn't seem to work. Anyone?
The program when executed should automatically fill one array with one ".txt" file and the other one should be filled in as well from a different ".txt" file so they can be compared in a seperate function. So no manual inputs.
Is this the only way to achieve that?
I haven't' seen some of this stuff before so I don't really know what the vector<char> does. I haven't learned that much yet.