Question by
Bohdan-Shpytko · Jul 17, 2016 at 06:11 PM ·
c#androideditorsystem.io
How to save text to file with the separated lines
when I try to save some text in Editor, I got result1 when I want to save some text in the separated lines in my Android device, but I have result like this result2
result 1 is
a
b
c
d
result 2 is
abcd
here's my code
public void savetofile()
{
StreamWriter SW = new StreamWriter(" path to file ");
SW.WriteLine("a");
SW.WriteLine("b");
SW.WriteLine("c");
SW.WriteLine("d");
}
SO, WHAT'S CAN BE WRONG !!!
Comment