note cLive ;-) You forgot the input can be (eg) 50 or 0050 and that the filenames contain other text, but otherwise, nice idea :) ++ <P>cLive ;-) <P>PS, if you look at mine, it is a prog, not a sub :)) I just began with the sub so i didn't have to explicitly call it with & or () later on when assigning $c & $d. 82434 82461