Paolo Carlini wrote: > ...indeed, changing your snippet to use ofstream > leads to the expected behavior. ... but of course you don't create /1000/ different files, just the same file 1000 times (since you are always passing the very same "boo") Paolo.