0

I'm using this code for insert new line, it works in label,

System.IO.File.WriteAllText(@"C:\Users\hello\Desktop\hello.txt", "\n"+"hello"+"\n"+"hello \n");

but it doesn't work in txt file

cma9nn
  • 29
  • 1

1 Answers1

2

I should use Environment.NewLine instead of \n

cma9nn
  • 29
  • 1