Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!emory!att!rutgers!netnews.upenn.edu!eniac.seas.upenn.edu!duong From: duong@eniac.seas.upenn.edu (ROBOCOP) Newsgroups: comp.lang.c Subject: How to open multiple files?? Message-ID: <41084@netnews.upenn.edu> Date: 13 Apr 91 13:43:10 GMT Sender: news@netnews.upenn.edu Reply-To: duong@eniac.seas.upenn.edu (ROBOCOP) Organization: University of Pennsylvania Lines: 31 Nntp-Posting-Host: eniac.seas.upenn.edu 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 at the command line. e.g % read 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