Hi, How would I use fstream to open every text file in a folder? I am basically opening a text file (that i currently define the name of) running a loop of getline and storing the lines i need in a string array. Open next , repeat until all are done.
I would like to be able to point to a directory and then it opens the first file (does the loop) closes , opens next etc until it reaches the end. How would it find the first file does it search them by name or does it search by date? I assume these are all parameters you can set I am just not sure how!
Yea I have looked over it and checked it out before but im only a few weeks into programming part time , and I really cant make much sense of it. Is the boost file system the only solution for opening all text files in a folder when you dont know the names of the files ?