资源文件修改的问题
我的资源文件中有一个文本文件(name.txt,在resources根目录下),我想操作这个文本文件增加一行,不知道如何实现,以下自己乱写的并未能实现。。。。求方法。。。
程序代码:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim line As String = "asdfasdf" Dim tobjStream As IO.Stream = Me.GetType.Assembly.GetManifestResourceStream("WindowsApplication1.name.txt") Dim sw As StreamWriter = New StreamWriter(tobjStream) sw.WriteLine(line) Me.Close() '关闭此窗口 Global.WindowsApplication1.名称.TopMost = True '打开主窗口置顶() End Sub