Answer the question
In order to leave comments, you need to log in
Data entry outside the file, what is the reason?
Dim fso, MyFile, str, newStr, num, i
i = 0
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile=fso.OpenTextFile("data.txt", 1, True)
Do While MyFile.AtEndOfStream<>True
str = MyFile.ReadLine
If (Len(str) <> 0) Then
'str = split(MyFile.ReadLine, ":")
newStr = split(str, "/rus/")
num = UBound(newStr)
i = i + 1
Msgbox newStr(num)
End If
Loop
newStr = split(str, "/rus/")
Data entry outside the file
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question