winzip icon

Count the Lines of Text in a File

Email
Submitted on: 9/3/2018 6:13:06 AM
By: ICE 
Level: Beginner
User Rating: Unrated
Compatibility: VB 6.0
Views: 697
author picture
 
     This will simply and quickly count the lines of text in a file, If a user copies their code an pastes it in a notepad they can find out just how many lines of text are in their code..... I have a I am working on that is so close to being done its not funny, BUT 1 line in the code is messing me around, that will read the contents of a file, (like a DE-compiler),,, But 1 line has seriously messed me around for a few days now, I may just scrap it even thought it would be very useful... .OK. Let me CLARIFY WHERE I think some people seem to think I said the error was a line in this upload,,, I CLEARLY SAID........ ........I have a I am working on that is so close to being done its not funny, BUT 1 line in the code is messing me around,,,,,,,, NOW READ IT REPEATEDLY IF NEED BE TILL YOU READ IT RIGHT.... In this one there is a bogus bit that does not do anything an should be removed & that is the last little bit of the line that shows in the textnox at the top,,, the part that says "CountLns.frm" that should be removed since that will not get read an will give a light error,,,, But that is an was just a sample line just to show where to type the address to a file to read an to show what the address should look like ... when I took the screenshot showing it was working,,, you can clearly see the address,,,,,, I had typed in to read the file an count the lines of text that was used for the screenshot,,, I hope that helped clear things up for those who needed it cleared up more then I had already clearly said......

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


Other 34 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

9/2/2018 6:58:56 PMJohn Korejwa

What 1 line is giving you problems? CountLns.frm does not exist in this project, so it doesn't work as intended.
(If this comment was disrespectful, please report it.)

 
9/2/2018 8:36:16 PMICE

You might want to reread what you think you read, I never said a line in this 1 was messing me around,,, what I said was,,, I have a program I am working on that is so close to being done its not funny, BUT 1 line in the code is messing me around,,, I know that 1 line you mentioned was not in the program, thanks
(If this comment was disrespectful, please report it.)

 
9/3/2018 1:40:32 AMRob C

I too (like John) am confused by what you said.
Is it 1 line in this program ?
Or 1 line in a program that you have not made available to us yet ?
If it is 1 line in this program, why not clarify which line, and any other information that will help us help you
(If this comment was disrespectful, please report it.)

 
9/3/2018 5:41:12 AMICE

I answered this but it said I typed more then the 1000 char limit,,,, SO LET ME JUST CALMLY SAY.... PLEASE READ IT AGAIN & READ IT CAREFULLY.. You might just see where I clearly said I have a program I am working on that has/had a error ,,, I NEVER SAID IT WAS THIS ONE.. READ, ITS ALL IN THE WAY YOU MISREAD WHAT WAS TYPED....
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.