WriteSal to file