Um, NewLine char ain't workin' nomore.
-
Hi all, I'm using \n to create a new line when I wrote to a text file. Here's how I'm writing the string: File.AppendAllText(destinationpath.Text, "Hi, this is a\n multiline\n text\n file."); Now, it's not working.When I open the text file that was created, the whole thing's just a single line, but where the new line should have been created, there is a weird-looking square in its place. I've used \n to create new lines in the past and it worked perfectly but it doesn't want to work anymore. Does anyone have any ideas? Jay.
foreach( inch on Jason ) { Girlfriend.IsHappier(); }
-
Hi all, I'm using \n to create a new line when I wrote to a text file. Here's how I'm writing the string: File.AppendAllText(destinationpath.Text, "Hi, this is a\n multiline\n text\n file."); Now, it's not working.When I open the text file that was created, the whole thing's just a single line, but where the new line should have been created, there is a weird-looking square in its place. I've used \n to create new lines in the past and it worked perfectly but it doesn't want to work anymore. Does anyone have any ideas? Jay.
foreach( inch on Jason ) { Girlfriend.IsHappier(); }
Try this
File.AppendAllText(destinationpath.Text, "Hi, this is a" + Environment.NewLine + " multiline...");
-
Hi all, I'm using \n to create a new line when I wrote to a text file. Here's how I'm writing the string: File.AppendAllText(destinationpath.Text, "Hi, this is a\n multiline\n text\n file."); Now, it's not working.When I open the text file that was created, the whole thing's just a single line, but where the new line should have been created, there is a weird-looking square in its place. I've used \n to create new lines in the past and it worked perfectly but it doesn't want to work anymore. Does anyone have any ideas? Jay.
foreach( inch on Jason ) { Girlfriend.IsHappier(); }
-
Try this
File.AppendAllText(destinationpath.Text, "Hi, this is a" + Environment.NewLine + " multiline...");