visual studio - When loading richTextBox with a plaintext file(.txt) it loses the formatting -


well load text file in project container using

richtextbox1->loadfile("filename.txt",system::windows::forms::richtextboxstreamtype::plaintext); 

but when outputing loses '\n' 's (basically no endlines left in text).

i know windows save endlines '\r''\n' or that, think loses '\n' because thinks different formatting or can't figure out how bypass without opening file , converting string ^ first , directly loading richtextbox.

edit: example:

original text:

line1

line2

line3

-after loading file:

line1 line2 line3


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -