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 the use of the formatdatetime function in the vbscript language?
what types of bugs will we find out in banking projects for automation testing?
0 Answers Napier Healthcare, TCS,
how to write code: to check whether the window of an Application Under Test exist or not . plz give with example
Difference between dim,public and private variables in vb script?
If anyone knows abt Test Complete material, Pls let me Know. if u have any material or any documents..... Pls mail me on this mail Id...... This is very Urgent Requirment..... for my Project.....
In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?
Why is error handling required?
How can you fetch the value of a cookie?
reverse the string without using reverse string?
what is the function to display current date?
Create a file system object to do the following i. Create a folder ii. Create a text file in the folder iii. Update text file with some tex
Explain about the support of asp for vb script functionality?