If I write "println("string")
" the code writes "string" and then \n if it's run in Windows, \r\n if it's in Linux.
Is there a way to change the behaviour of the "newline" according to my will? I tried to search some other String method, but couldn't find any that could adapt to this problem.
Obviously the final solution would be "print("String\r\n")
" if I want the newline to be Windows-compatible, but it's the last thing I'd want to do.
Thanks for the suggestion