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
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
what is diff between static and dynaic arrys?
Mention what is the use of option explicit in vbscript?
what is the difference between modular and data and keyword driven framework
Explain the extension .hta?
How can you create an object in vbscript?
Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...
please can you help me to get a code of flames using a visual basic 6
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
Which data type/types are supported by vbscript language and what are their specialties?
while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans
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 variant in vb script?
How to write VB script for login module?
How to declare an array in vbscript?