Open a list of files from a txt file(C) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Open a list of files from a txt file(C)

I have a txt file with a list of 3 letters like ABC DEF ... ... and i need to open all the files in the same folder that are called ABC_summary.txt,DEF_summary.txt etc... there are a few exceptions too like a file with a 4 letters name and one that is called ABC(1)_summary.txt

4th Jul 2020, 4:18 PM
Guido Parlatore
Guido Parlatore - avatar
2 Answers
+ 1
https://code.sololearn.com/c638GT66Mr3S/#c i tried doing something like this but there must be something wrong allocating memory
4th Jul 2020, 6:51 PM
Guido Parlatore
Guido Parlatore - avatar
0
The problem is that the file with the name of the files contains only the first three letters but not the complete file name, like in the file i have "ABC" and the file i have to open is ABC_summary.txt
4th Jul 2020, 4:55 PM
Guido Parlatore
Guido Parlatore - avatar