如何刪除下面的最後一個crlf
代碼?在最後一行刪除CRLF
Dim fh As StreamReader
Dim temp as string
Dim temp1 as string
fh = new StreamReader("haggis.txt")
Dim s As String = fh.ReadLine()
While not s Is Nothing
temp = temp & s & Vbcrlf
Console.WriteLine(temp)
End While
fh.Close()
haggis.txt
AAAA
BBBB
'Return
AAAA
BBBB
crlf <---- I want to remove this.
您的代碼是完全無效的。 – SLaks 2011-04-21 02:49:14
我更改了代碼SLaks - tnx – user709787 2011-04-21 03:01:28
我是唯一一個發現「haggis.txt」有趣的人嗎? – Cyclone 2011-04-21 03:27:08