Ver originalofstream fsalida1;string filename; if (salida == 2) filename = "salida2.txt";else filename = "salida1.txt"; fsalida1.open(filename);