My assingment is to write a command line program in Unix. This program takes 3 arguments. The third argument is a generation prefix. I am suppose to print out to a text file in the format of <gen_prefix> + < generation number > + ".txt"
If the gen_prefix is "gen", then the base Generation file will be: "gen0.txt"
Generation 1 will be "gen1.txt"
Im not sure how to create or declare such a file.
Please help
If the gen_prefix is "gen", then the base Generation file will be: "gen0.txt"
Generation 1 will be "gen1.txt"
Im not sure how to create or declare such a file.
Please help
Comment