simplified file writing on post