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
Post a Comment