hi,
i was wondering does anyone know how i would reference an array of file names so that i can reuse a method i have written with several files, for example:
Code:for(int i = 0; i < 3; i++) { string files[] = {"file1.txt", "file2.txt", "file3.txt", "file4.txt"}; ifstream inputFile; inputFile.open(files[i]); continue code..... }end