I wish to make files for enemies in a gme, but they're so many enemies, that i do not wish to do a if else ife to open all of them for battle. I want to randomize an int, and open a file with that number.

is there a way that i can do this? I have tried making int a = <num>;
char b = a;
ifstream fin(b);

It wouldn't get errors, but it would not open, and i assume that is because it is looking for the ascii symbol.

Thanks ahead of time.