added writecontent method

Added writecontent method, which takes the filename were the content
ist written.