in reply to Design/Style question about writing to a file from different functions
I think that this kills solution 1.
Could you show us a simple code example of what you have in mind?