Hello I have 150 data files that have 4 columns in each file. What I am wondering is how would I go about reading that data into a C++ program. I have tried looking online but all the resources I have come across, have only been tutorials on how to input data from one source. The data is also in a sequence to, meaning the text files I'm reading, have the format of "Line_U1.txt", "Line_U2.txt", "Line_U3.txt",... and the data is all consistently as:
column 1 = distances
column 2 = X_values
column 3 = Y_values
column 4 = Z_values
I would like to import this data into a c++ program, as I have tried with Matlab and I think the data is reading in incorrectly, which is why I am switching to a c++ program but don't know how to read the 150 data files into the program. Any help would be greatly appreciated.