Add as parameter the name of the file to write to