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 to Convert Hex color code to color name in VB Script?
Anyone have qtp11.0 crack?
Explain about scrrun.dll in vbscript?
What are the differences between sub procedures and function procedures?
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...
Which command is used for writing text on a page?
What are class events?
Explain what is loose binding? Why is it not a good practice to use it?
What is event handling in vbscript?
How to pass argument by reference to a function in vbscript?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
Mention what if you do not specify anything when you call a procedure?
In what way program "hello world" you can write in vbscript?
Explain sga memory structures?
What are the advantages of vbscript?