Write a VB Script to count blank Lines in a notepad
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What is parametrization ?
write script to open Gmail.com, and to write script for entering username and password and show whether the result as pass or fail
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
Hi, Anybody could tell me What is the script for Reverse of Given number. Ex:236--632. Thanks in Advance..
how to organize files in object repository of qtp
What is the main difference between function and sub-procedure?
How will you get a string with the specified character the specified number of times in vbscript?
How to generate 3 digit random number?
What are the 2 ways in which a variable can be declared in the vbscript language?
How will you get a combined string from array of string in vbscript?
Which in-built function related to an array joins substrings into one string in the vbscript language?
Explain about tristate constants?