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 / siva
Set fso=createobject("scripting.filesystemobject")
Set forread=fso.OpenTextFile("path\test.txt",1)
text=forread.ReadAll
coun=ubound(split(text,"sunday"))
msgbox coun
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the use of the recordset object and which statement is used to create such an object?
What is the extension of the vbscript file?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
how to write validation function for date in vb script
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.
What is the output of a + b in vbscript if a = 5 and b = 10?
What are the different types of operators and their order of precedence?
How will you get the natural logarithm of the given number in vbscript?
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
Which data type/types are supported by vbscript language and what are their specialties?
Explain the scope of the variables using dim, public, and private keywords respectively.
What is the difference between VBScript and JavaScript?
What is the difference between vbscript and vba?
What are keywords in the vbscript language?