V
V
Vadim Cherkashin2018-05-22 06:39:20
.NET
Vadim Cherkashin, 2018-05-22 06:39:20

How to add a line break to a line?

String^ a ;
a+="text"+'\n';
tmp->Write(a);// write to file .txt
//output : text10

How to achieve a line break instead of ten at the end?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Kuznetsov, 2018-05-22
@WebProgrammer

I think you need to write either:

String  a = ""; 
a+="text\n"

or:
String  a = ""; 
a+="text" + "\n"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question