in reply to Writing to a file

I don't think that the bistable op is the best way to solve this kind of problem, as you can see from the responses on this node and on convert to XML.