My customer requires text files to be written in the following format:
"adrian","sigamoney","01","1","B"
No matter what I do I get in file
adrian,sigamoney,01,1,B
I have tried split, replace, adding extra hyphens to string.
Please help urgently.
My customer requires text files to be written in the following format:
"adrian","sigamoney","01","1","B"
No matter what I do I get in file
adrian,sigamoney,01,1,B
I have tried split, replace, adding extra hyphens to string.
Please help urgently.
If you still have some time then I can help you: (please check the code I provided in a separate Project)
'''''''' Your Dynamic textboxes, this will be created at runtime.
Dim tb1 as new TextBox() With {.Text="adrian"}
Dim tb2 as new TextBox() With {.Text="sigamoney"}
Dim tb3 as new TextBox() With {.Text="01"}
Dim tb4 as new TextBox() With {.Text="1"}
Dim tb5 as new TextBox() With {.Text="B"}
Public Sub WriteInFile()
Dim sw as new System.IO.StreamWriter("C:\abc.txt")
sw.Write(tb1.Text & "," & tb2.Text & "," & tb3.Text & "," & tb4.Text & "," & tb5.Text)
sw.Close()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WriteInFile()
End Sub We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.