save posts to file
create file for posts if not existing yet