If utilizing an external utility is appropriate I would want busybox for Home windows which happens to be just one ~600 kB exe incorporating ~thirty Unix utilities. The only real change is that 1 should use "busybox cat" command rather than simple "cat" @DietrichEpp I believed it was commonly useful https://www.petskyonline.com/