Fixed write to file for each separator argument