How to open multiple files??
ROBOCOP
duong at eniac.seas.upenn.edu
Sat Apr 13 23:43:10 AEST 1991
Hi..
Could any one show me explicitly how to open a multiple files at a
command line?? what I want to do is take 2 arguments <filename> at
the command line.
e.g % read <inputfilename> <outputfilename>
where the argument could be:
a) inputfilename: only one inputfile and it will generate a
multiple outputfiles with the extension .001.data..
ex: % read datain dataout
then my directory will have
% dataout.001.dat dataout.002.dat dataout.003.dat ..and
so for up to n output files.
b) inputfilename: multiple inputfilename have a pattern
input.*.data where *=001,002, 003..etc..and i'll generate a
multiple outputfiles with corespoding output.*.data
Thank you very much to all who responses..E-mail please.
duc
More information about the Comp.lang.c
mailing list