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 |
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me
What is wrong with the following code: <%afname="header.asp"%><!?#include file ="<%=afname%>"?>
Could Anybody tell me the VBscript for REVERSE an Integer int reverse(int num) Ex:246 to 642
Mention what is the difference between vbscript and vba?
if there is any string in a given format like as "company name employeecode date" then we have to fetch employeecode form string for ex-string is "capgemini12345june2013" then we have to fetch 12345 by using vb script so guys how can we do that please reply it.
Which function allows you to instantiate an object given its programmatic identifier or progid?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
who will create the object?
Which date function is used in the vbscript language to find the difference between the 2 dates?
How can you fetch the value of a cookie?
Why do we use Option Explicit?
What is the extension of the vbscript file?