Generating data file names from program variables
I am writing a C program for numerical scheme. Now, based on the input parameter, I am trying to generate data file name. For example, suppose grid size defined by N is 50 i.e. N = 50, and if I can include this grid size in the data file e.g. ums_50.dat, then as we change the parameters, they will automatically be reflected in the file name. Let's say we make N = 60, then code should generate file ums_60.dat and so on.
We can also have more than one parameters in the file name. I did write a code which is a bit involved and not giving desired output.
Any relevant suggestions will be appreciated.
Thanx in advance.