A write on a text stream does not cause a file to be truncated beyond that point unless a hardware device forces it to happen.