Answers:
不,应用程序的程序员必须在编译代码之前将其内置。
如果这是您想做的事情,那么您将需要能够使用一个程序,该程序可以动态访问RAM地址并动态更改代码。
如果是用VB编程的,则下面是程序员必须自觉执行的代码片段:
Private Sub button1_Click(sender As Object, e As System.EventArgs)
Dim myStream As Stream
Dim saveFileDialog1 As New SaveFileDialog()
saveFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*" // <-- THIS ONE
saveFileDialog1.FilterIndex = 2
saveFileDialog1.RestoreDirectory = True
If saveFileDialog1.ShowDialog() = DialogResult.OK Then
myStream = saveFileDialog1.OpenFile()
If (myStream IsNot Nothing) Then
' Code to write the stream goes here.
myStream.Close()
End If
End If
End Sub