Joined: 18 Dec 2007 Posts: 119 Location: the ciTy OF lIgHTs !
Posted: Thu May 01, 2008 4:51 am Post subject: Making a Variable scanner in vb (Question)
hello fellow hackers i am having a problem at making my scanner (variable scanner)this is my first scanner and after i get some idea or tut ill try to make it in flash so guys i wanted to say that i am having problem at finding variable I have a text file , dictionary but i cant get how to open it and how to make it read each line.
when i will finish it ill release it too
Public Class Form1
Public Sub BrowseFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BrowseFile.Click
Dim FolderBrowseDialog As New OpenFileDialog
Dim sr As IO.StreamReader
Dim Contents As String = sr.ReadToEnd
With FolderBrowseDialog
.Filter = "Text files (*.txt)|*.txt|" & "All files|*.*"
.InitialDirectory = "C:"
.RestoreDirectory = True
If .ShowDialog = Windows.Forms.DialogResult.OK Then
sr = New IO.StreamReader(.OpenFile)
txtFileDirectory.Text = .FileName
txtFileContents.Text = Contents
End If
End With
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum