Write a VB Script to count blank Lines in a notepad
Answer Posted / usha
set fso=createobject("scripting.filesystemobject")
set f=fso.opentextfile("C:usha.txt")
c=0
do until (f.atendofstream)
a=f.readline()
if len(a)=0 then
c=c+1
end if
loop
msgbox c
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How you can call vbscript functions?
How are values assigned to string type and numeric type variables?
when we use filter funtiom invb script(QTP)
Explain what is loose binding? Why is it not a good practice to use it?
How will you convert a string to lower case string using vbscript?
How to open a file. What is the perpose of true and false mode there?
Mention the environments where vbscript could be run?
How will you get the exponent of the given number in vbscript?
wht must be the interview question on corinthian information technology solutions incorporated.
What is the purpose of on error resume next statement?
What are the different types of loops available in the vbscript language?
Mention what is variant in vbscript?
Which command is used for writing text on a page?
Explain about constants in vb script?
In what way program "hello world" you can write in vbscript?