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

Which function is used in the vbscript language to convert the specified expression into a date type value?

941


How will you format a number in percetage format in vbscript?

997


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

1158


What are class variables?

1031


What are the valid scopes of a variable in vbscript?

1099


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

2505


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

2042


Why is the use of exit do or exit for statements within loops discouraged?

1045


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

2629


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

983


Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

2093


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

1007


Which object provide information about a single runtime error in a vbscript?

1068


Mention what is the difference between vbscript and vba?

1052


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

1010