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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -