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

Mention when to use function procedures and what are its characteristics?

1059


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2585


How to assign a numeric value to a variable?

1053


Why is error handling required?

963


Explain few date functions in vbscript?

1001


What is purpose of scripting.filesystemobject class in vbscript?

1066


Explain the scope of the variables using dim, public, and private keywords respectively.

1104


What is difference between vbscript and vba?

1117


What methods are used to create text files and open text files in the vbscript language?

928


Which in-built function is used to format the number in the vbscript language?

954


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2467


How do you declare a variable in vbscript?

1023


What are the valid scopes of a variable in vbscript?

1048


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

1314


What is the difference between javascript and vbscript?

1082