in reply to Question on the format statement

I've never worked with format before, but the documentation mentions it together with write, which in turns takes an optional file handle as its sole argument... is that what you are looking for? Or is the matter somehow more complicated?