G
Guest
hi, all.
Here is a stupid question.
I have three string
string str1 =" test1 ";
string str2 =" test21\ntest22\ntest23"; (\n means return key)
string str3 =" test3 ";
I write them to a file(test.txt) by using Stream.write();
I open the file:
it is:
test1
test21
test22
test23
test3
when I read test.txtby using Stream.read(), I can not restore it again.I got
5 string.
indeed, It should three string?
What should I do?
Thanks
Here is a stupid question.
I have three string
string str1 =" test1 ";
string str2 =" test21\ntest22\ntest23"; (\n means return key)
string str3 =" test3 ";
I write them to a file(test.txt) by using Stream.write();
I open the file:
it is:
test1
test21
test22
test23
test3
when I read test.txtby using Stream.read(), I can not restore it again.I got
5 string.
indeed, It should three string?
What should I do?
Thanks