mateenhussain
16 years agoOccasional Contributor
aqFile.WriteToTextFile is not writing new line characters to the file
Hi I'm trying to write to a text file using aqFile.WriteToTextFile. Here's the piece of code:
So I'm expecting something like
[Output]
abc
cde
[/Output]
But what I get is
[ActualOutput]
abccde
[/ActualOutput]
When I debug, str it has proper new line charecters as its value. Is this a bug or am I doing something wrong here.
Thanks,
Mateen
if(
aqFile.Create("A:\\dplogin.txt")!=0)
Log.Warning("Unable to Create DPLogin.txt");
var str="abc\ncde\n";
if(!
aqFile.WriteToTextFile("A:\\dplogin.txt",str,22))
Log.Warning("Unable to write to DPLogin.txt");
So I'm expecting something like
[Output]
abc
cde
[/Output]
But what I get is
[ActualOutput]
abccde
[/ActualOutput]
When I debug, str it has proper new line charecters as its value. Is this a bug or am I doing something wrong here.
Thanks,
Mateen