set seed in output file name

If someone got a output file of simulation, and he/she wants to creat the exactly same simulation results as that output simulation file. How to do it?  so, add seed as a part of output file name.