• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Want to get organized in 2022? Let Dokkio put your cloud files (Drive, Dropbox, and Slack and Gmail attachments) and documents (Google Docs, Sheets, and Notion) in order. Try Dokkio (from the makers of PBworks) for free. Available on the web, Mac, and Windows.


Count Lines

Page history last edited by Dorai Thodla 12 years, 3 months ago

Count Lines in a File


  1. Get the file name from the command line parameter
  2. Open the file and read
  3. Count the number of lines
  4. Print the count

Tiny Projects

Comments (0)

You don't have permission to comment on this page.