Skip to main content
Became Hot Network Question
minor edit to title and post esp. including the word parameter to highlight usage
Source Link
Syed
  • 59.6k
  • 5
  • 40
  • 95

How to compose thea filename given different stringswith multiple string parameters?

Consider some strings Par1string parameters: Par1, Par2Par2, Par3Par3. Could you please tell me how to compose a filename/string in string of the form:

filename="experiment-Par1_number-Par2_position-Par3.dat"

filename="experiment-Par1_number-Par2_position-Par3.dat"

EFor the data: e.g., with the following example, Par1="Exp"; Par2="11"; Par3="End";

Par1="Exp";
Par2="11";
Par3="End";

the filename would be:

filename="experiment-Exp_number-11_position-End.dat"

How to compose the filename given different strings?

Consider some strings Par1, Par2, Par3. Could you please tell me how to compose filename/string in the form

filename="experiment-Par1_number-Par2_position-Par3.dat"

E.g., with the following example, Par1="Exp"; Par2="11"; Par3="End";

the filename would be

filename="experiment-Exp_number-11_position-End.dat"

How to compose a filename with multiple string parameters?

Consider some string parameters: Par1, Par2, Par3. Could you please tell me how to compose a filename string of the form:

filename="experiment-Par1_number-Par2_position-Par3.dat"

For the data: e.g.,

Par1="Exp";
Par2="11";
Par3="End";

the filename would be:

filename="experiment-Exp_number-11_position-End.dat"
Source Link
John Taylor
  • 6k
  • 2
  • 14
  • 35

How to compose the filename given different strings?

Consider some strings Par1, Par2, Par3. Could you please tell me how to compose filename/string in the form

filename="experiment-Par1_number-Par2_position-Par3.dat"

E.g., with the following example, Par1="Exp"; Par2="11"; Par3="End";

the filename would be

filename="experiment-Exp_number-11_position-End.dat"