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...

Write a VB Script to count blank Lines in a notepad

Answer Posted / pravati

Set fso=createobject("scripting.filesystemobject")
Set qfile=fso.OpenTextFile("c:Rinkuaby.txt",1,true)
Do While qfile.AtEndOfStream<>true

x=qfile.ReadLine
msgbox x
If len(x)=0 Then
y=y+1
End If
msgbox y
loop

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

2104


Both Static and dynamic arrays are handled by VB script. Is it true?

1127


Mention what is vbscript procedures?

1053


How will you convert a given number to long in vbscript?

933


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1767


What is vbscript procedures?

1192


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

1035


Explain about the extension .hta?

1121


What is vbscript?

1168


What is sql loader? Explain the files used by sql loader to load file?

1210


Which operator is used to concatenate the 2 values in the vbscript language?

1045


How will you get a random number between 0 and 1 in vbscript?

1382


How will you get a string with the specified character the specified number of times in vbscript?

1069


What are class variables?

1086


Explain the operator precedence in vb script?

1139