sunday is sunday
monday
tuesday
wendesday
sunday
thursday
friday
saturday
sunday
sunday
how to count no of sunday in the text file from vb? Answer
me asap
Answer Posted / eswar
cnt =0
Set fso = CreateObject("scripting.filesystemobject")
Set f = fso.opentextfile("D:\test.txt",1)
While f.atendofstream<>true
x = f.readline
y = Split(x," ")
For i=0 to ubound(y)
If y(i) = "sunday" Then
cnt=cnt+1
End If
Next
Wend
MsgBox cnt
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is dictionary object in vbscript? Explain?
Explain about constants in vb script?
what types of bugs will we find out in banking projects for automation testing?
How will you convert a string to upper case string using vbscript?
Explain the tristate constants in vbscript?
What's the difference between vbscript and vb.net?
Mention what if you do not specify anything when you call a procedure?
What is vbscript language used for and which earlier language is it modeled upon?
Does VB/Win make standalone .EXE files?
How to make sure that items in a wintree are sorted al?
1. How do declare public variable in vb scripts?
Which operator can be used to check if two numbers are equal or not in vbscript?
How will you get a combined string from array of string in vbscript?
How to write functions and sub in vb script?
What are the rules to name variable in vbscript?