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
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 ?
Both Static and dynamic arrays are handled by VB script. Is it true?
Mention what is vbscript procedures?
How will you convert a given number to long in vbscript?
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
What is vbscript procedures?
How will you format a number in percetage format in vbscript?
Explain about the extension .hta?
What is vbscript?
What is sql loader? Explain the files used by sql loader to load file?
Which operator is used to concatenate the 2 values in the vbscript language?
How will you get a random number between 0 and 1 in vbscript?
How will you get a string with the specified character the specified number of times in vbscript?
What are class variables?
Explain the operator precedence in vb script?