Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to Convert Hex color code to color name in VB Script?

4451


Anyone have qtp11.0 crack?

2895


Explain about scrrun.dll in vbscript?

1134


What are the differences between sub procedures and function procedures?

1035


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...

2154


Which command is used for writing text on a page?

1058


What are class events?

1028


Explain what is loose binding? Why is it not a good practice to use it?

1134


What is event handling in vbscript?

1153


How to pass argument by reference to a function in vbscript?

1133


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.?

2553


Mention what if you do not specify anything when you call a procedure?

1029


In what way program "hello world" you can write in vbscript?

1166


Explain sga memory structures?

1082


What are the advantages of vbscript?

1142