hi everyone;
i have a script that is supposed to take an inputfile arg and an optional outputfile.
what i'd like to happen is:
1. quit if no arg passed
2. please, see the psudo code;
i'm seeking some help with number 2 above.
thanks in advance
daula
i have a script that is supposed to take an inputfile arg and an optional outputfile.
what i'd like to happen is:
1. quit if no arg passed
2. please, see the psudo code;
Code:
if (arg 1 exists and is a valid file)
{
if(arg 2 exist)
then process inputfile and save result to outputfile.
otherwise
process inputfile and spit the result onto the screen.
}
otherwise
{
quit
}
i'm seeking some help with number 2 above.
thanks in advance
daula