老大们,文本里的换行是\n么怎么我用字符串中的\n怎么不换行而且显示 \n怎么回事
Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder( " ")
Dim i As Integer = 0
Dim j As Integer = 0
For Each li As ListItem In Me.CheckBoxList1.Items
If li.Selected Then
i = i + 1
If i <> 1 Then sb.Append( "\t ")
For k As Integer = 0 To 1
If k = 0 Then
sb.Append(li.Text & ".Text = Convert.ToString(drtemp( " " ")
Else
sb.Append(li.Text & " " ")) ")
End If
Next
End If
Next
Dim sw As System.IO.StreamWriter = New System.IO.StreamWriter( "c:\ee.txt ")
sw.Write(sb.ToString)
sw.Flush()
sw.Close()
程序
文件
怎么是这样呢
txtfp.Text = Convert.ToString(drtemp( "txtfp "))\ttxtsap.Text = Convert.ToString(drtemp( "txtsap "))\ttxtjf.Text = Convert.ToString(drtemp( "txtjf "))\ttxtyf.Text = Convert.ToString(drtemp( "txtyf "))\ttxthr.Text = Convert.ToString(drtemp( "txthr "))\ttxtrmbx.Text = Convert.ToString(drtemp( "txtrmbx "))\ttxtrmbd.Text = Convert.ToString(drtemp( "txtrmbd "))\ttxtyears.Text = Convert.ToString(drtemp( "txtyears "))\ttxtmonths.Text = Convert.ToString(drtemp( "txtmonths "))\ttxtdays.Text