function to find number of lines in .txt file
I have a file C:\test\test.txt that I'd like to, using a Function where you pass in the Directory and Filename that you want to utilize, in this case C:\test and test.txt, calculate the number of lines in the text file and return that value from the Function.
Could someone share with me the code that would do this?
ex. if test.txt looked like
the Function would return the value 4.
thanks in advance,
Last Post: 12-13-2006, 03:49 PM
By Marcos in forum VB Classic
Last Post: 01-25-2006, 12:18 PM
By K. Soe in forum VB Classic
Last Post: 03-08-2003, 07:25 PM
By Michael Shutt in forum VB Classic
Last Post: 04-05-2001, 03:25 AM
By Dan in forum VB Classic
Last Post: 03-17-2000, 06:14 AM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL