Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are class variables?

1035


Mention the rules for using option explicit statement?

998


How should i Create Email invite with server-side Coding?

2135


What are string functions in vbscript?

1168


How many types of procedures are available in the vbscript language?

1001


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

991


how to automatically update the sql server2005 database records when insert in vb6?

1953


How will you get a subset of a array in vbscript?

1014


How to open browser in vb script?

1249


Explain about the extension .hta?

1077


How to open a file. What is the perpose of true and false mode there?

1120


how to write validation function for date in vb script

2632


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

2082


What are the properties of regexp object?

1108


Explain the operator precedence in vb script?

1079