The function name is inappropriate if a purpose of this function is saving a vector into a file. General naming such as `write()` is better.