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.
Jump to Post
The 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
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.