Ask questionsShould accept new line sequence in PrettyWriter
PrettyWriter should support new line sequence as a parameter, currently it prints '\n' by default. For windows user might want to keep '\r\n' as new line sequence. Similarly for Mac '\r'.
Answer questions miloyip
On Windows, this should have been handled by the standard library, e.g.
fopen(filename, "wt"), as in https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=vs-2019
In text mode, carriage return-line feed combinations are translated into single line feeds on input, and line feed characters are translated to carriage return-line feed combinations on output.