| | |
How to save ?
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2009
Posts: 269
Reputation:
Solved Threads: 54
0
#5 Nov 4th, 2009
just a small example:
vb Syntax (Toggle Plain Text)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click My.Computer.FileSystem.WriteAllText("myText.txt", TextBox1.Text & "#", True) ListBox1.Items.Add(TextBox1.Text) TextBox1.Clear() End Sub Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try For Each line As String In My.Computer.FileSystem.ReadAllText("myText.txt").Split("#") ListBox1.Items.Add(line) Next Catch ex As system.IO.FileNotFoundException 'file doesnt exist yet End Try End Sub
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: Loading user input into parralell arrays, Please help!
- Next Thread: Visual Basic Databases
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2008 2005 2008 access account application arithmetic array arrays basic bing button buttons c# center check checkbox code convert crystalreport data database datagrid datagridview date dissertation dissertations dropdownlist excel fade file-dialog filter ftp generatetags google gridview hardcopy images inline input insert intel internet listview mobile monitor ms net networking objects output panel passingparameters picturebox picturebox1 port position print printing problem project read remove save searchbox searchvb.net select serial shutdown soap sorting survey table tcp temperature text textbox timer timespan toolbox trim update user validation vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio2008 web webbrowser winforms wpf year





