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
What are the rules to name variable in vbscript?
Which loop is used in case of arrays in the vbscript language?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?
why do u choose to go for testing why cant for devoloping
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
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 ?
Is vbscript a case-sensitive or case-insensitive?
What are the properties of regexp object?
What are class properties?
when we use filter funtiom invb script(QTP)
What are the advantages of vbscript?
How will you get a subset of a array in vbscript?
What is loose binding? Why is it not a good practice to use it?
Explain the constants in vbscript?
Compare java script and vb script?