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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.