I basically need to to set up a regular expression with this code so when i open my txtfile.text it finds all the differrent acronyms and when it does extract the whole line that the acronym is in here is a sample of my text file and a sample of my code any help would be highly appreciated
"C FB...
I basically need to to set up a regular expression with this code so when i open my txtfile.text it finds all the differrent acronyms and when it does extract the whole line that the acronym is in here is a sample of my text file and a sample of my code any help would be highly appreciated
"C FB...
i need to know how to get this to read all lines?
objInputFile = objFSO.OpenTextFile(strInputFile, intForReading, False)
strFoundText = ""
' Read the first line if the file is not empty
While Not objInputFile.AtEndOfStream
strLine =...
sorry not fimilar with code tag .
if yo can read this i am trying to figure out a way to loop through my text file to find all strTextToFind = "C"
need to find all "C"
any sugestions?
[code]
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'SAW EXTRACT BUTTON
ofd3.ShowDialog()
If Not Me.txtFile.Text = "close" Then
Dim instance As COMException
' Set this to the file...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'SAW EXTRACT BUTTON
ofd3.ShowDialog()
If Not Me.txtFile.Text = "close" Then
Dim instance As COMException
' Set this to the file to...
This works!!! to where my strToFind will find my "SHT"
but only one instance.. I have a text document with many instances of "SHT".in the line of text and I want them all this code gives me just one when I click to transfer into my selected file..
also how can I add more acronyms like "SHT"...
the system IO will not lte me write my array?
ofd3.ShowDialog()
If Not Me.txtFile.Text = "close" Then
'Read the existing file
Dim FileText As String = ""
FileText = System.IO.File.ReadAllText(Me.txtFile.Text)
'saw...
does any one have an example of how i can use the mid ,left, right len command to write these dim characters and all text to left and right of the row from a text file and write them to a specific file chosen from my open file dilog?
basicaly i know i need to loop throw the text in my write...
basically I am trying to use the selected file in open dialog to write to instead of a pre-ordained "logfile"
i want to select the file to write to?
Me.txtFile.Text = ""
ofd.ShowDialog()
Me.txtFile.Text = ofd.FileName
If Not Me.txtFile.Text = "" Then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.