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?
Explain the constants in vbscript?
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
What are the different types of operators and their order of precedence?
What is the scope of a constant declared using public?
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.
Mention what is the use of option explicit in vbscript?
What are the different types of loops available in the vbscript language?
How strcomp function works?
How to access array data?
What are the 2 ways to pass a value to the function?
What are string functions in vbscript?
Which in-built function related to an array joins substrings into one string in the vbscript language?
What is the use of option explicit statement?