Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 149,934 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,682 people online right now. Registration is fast and FREE... Join Now!




How to check file is empty

 
Reply to this topicStart new topic

How to check file is empty

lohithahn
1 Feb, 2008 - 01:33 AM
Post #1

New D.I.C Head
*

Joined: 21 Oct, 2007
Posts: 20


My Contributions
Hi,
I have a zipped file. Now i have extracted the zipped contents from that file and placed in temporary directory some thing like this D:\newfolder...Now i want to check if this folder consist any .ini file....How to check this..Please can anyone guide me.....

Regards
Lohith
User is offlineProfile CardPM
+Quote Post

RodgerB
RE: How To Check File Is Empty
1 Feb, 2008 - 05:41 AM
Post #2

D.I.C Lover
Group Icon

Joined: 21 Sep, 2007
Posts: 2,166



Thanked: 17 times
Dream Kudos: 2200
Expert In: Dot Net Technologies

My Contributions
Take a look at the System.IO.File.Exists function. It will return a boolean result of whether the file exists or not.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 03:33PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month