• If your data contains spaces, they will be reproduced in the file.

    Otherwise, I don't see any problem with your approach.