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
Difference between dim,public and private variables in vb script?
Explain the extension .hta?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
please can you help me to get a code of flames using a visual basic 6
1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)
How should i Create Email invite with server-side Coding?
How will you get the smallest subscript of an array in vbscript?
Why is it recommended to close the database connection every time after the work is completed?
how to operate webobjects in a webpage using getobject function and then using generic methods?
Description.Create
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
How to write functions and sub in vb script?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
Explain about filter expression?