Write given arguments to txt file