find the size of log file using vb.net*?

bcm

Well-known member
Joined
Aug 13, 2007
Messages
56
Programming Experience
Beginner
How to find the size of log file using vb.net?
also how to fix the log file size to 1KB????

:confused:
 
You determine the size of any file using the FileInfo.Length property. The value is the number of bytes in the file, so it should be <= 1024 to limit it to 1KB. If the size is greater than that value then you can delete lines until it isn't.
 
Back
Top