static void Filter(string inpath, string outpath, filt filter) { using (var ins = new StreamReader(inpath)){ using (var outs = new StreamWriter(outpath)){ filter(ins, outs); } } }
static void Filter (string inpath, string outpath, filt filter) { using (var ins = new StreamReader (inpath)){ using (var outs = new StreamWriter (outpath)){ filter (ins, outs); } } }