Dim filepath As String = "c://test.txt"
If Not System.IO.File.Exists(filepath) Then
System.IO.File.Create(filepath)
End If
' System.IO.File.OpenWrite(filepath)
My.Computer.FileSystem.WriteAllText(filepath, "hello world", True)
VB.NET 写TXT文件
最新推荐文章于 2023-04-17 16:00:48 发布