Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mid, command ?

Status
Not open for further replies.

Shaun29

Programmer
Oct 22, 2008
53
US
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 statment so it finds the varibles an writes the varible plus all text from mid over 10,10 to my destination file.

here is my read statment and part of my mid

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 charaters
Dim C As String
Dim FB As String
Dim L As String
Dim RB As String
Dim S As String
Dim SB As String
Dim TS As String
Dim XS As String
'burn charaters
Dim PL As String
Dim SHt As String
Dim SR As String
'THEN USE ALL VARIBLES TO WRITE FROM READ FILE FROM MID
DEBUG.WRITELINES(MICROSOFT.VISUALBASICS.MID(,C,FB,L,RB,S,SB,TS,XS,PL,SHT,SR,'1 TO 10 OR WHAT EVER SELECTS THE LINE WITH THESE CHARACTERS ON THEM WITH THE RESIDING INFOMATION TO THE LEFT AND WRITE OF IT??
 
can you give an example of an input line and an expected result?

"...and did we give up when the Germans bombed Pearl Harbor? NO!"
"Don't stop him. He's roll'n.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top