Hello,
Could someone please assist here? I have a program that reads a text file and copys the contents separated by a $ sign and writes the details to another new text file excluding the $ Sign. What I need assistance is to do a count and get the total records separate by the $ sign. Eg. ajasasaj$testing%878788%%$lkshhajsjah
for the above the total count would be 3. What I want is the 3 value. so how could I get that 3? Please assist at your earliest.
kipslem
0
Light Poster
Recommended Answers
Jump to PostThe split function will do the job:
Dim MyString As String = "ajasasaj$testing%878788%%$lkshhajsjah" 'This splits a the string, by the "$", into an array Dim MySplitString() As String = MyString.Split("$") 'This gives the number of records Dim Cnt As Integer = MySplitString.Count 'This joins the string back …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.