in reply to Forking and writing to files
You might get some ideas from an old thing of mine, Many-to-One pipe. Just let the child append to the file.
After Compline,Zaxo