Need help making "Save function" for a text editor I am making.
Posted: Fri Jun 20, 2008 7:53 pm
Are PHP, ini, bat, xml just types of files that can be edited in any text editors or do they only work for specific types of text editors like notepad.
Download link : http://www.mxproject.com/freehost/frogg ... itor_2.zip
My VB Save as Procedure for my Text/Website maker program. Whould my created PHP, ini, bat, xml file work in my editor like notepad created files.
Download link : http://www.mxproject.com/freehost/frogg ... itor_2.zip
My VB Save as Procedure for my Text/Website maker program. Whould my created PHP, ini, bat, xml file work in my editor like notepad created files.
Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SAToolStripMenuItem.Click
Dim Save As New SaveFileDialog()
Dim mystreamwriter As System.IO.StreamWriter
Save.Filter = "Webpage(*.htm)|*.htm|Text(*.txt)|*.txt |PHP(*.php)|*.php |INI(*.ini)|*.ini|BAT(*.bat)|*.bat|XML (*.xml)|*.xml|All Files(*.*|*.*"
Save.CheckPathExists = True
Save.Title = "Save File"
Save.ShowDialog(Me)
Try
mystreamwriter = System.IO.File.AppendText(Save.FileName)
mystreamwriter.Write(xHTMLcodeTB.Text)
mystreamwriter.Flush()
Catch ex As Exception
'Do nothing on Exception
End Try
End Sub