Made a possibly usefull filewriter