• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to count a certain number of characters in any txt file?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I have 2 args[] one that reads the file name in the same directory and the other that tries to count how many of any letter (maybe even words) in the txt file
 
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thats an interesting exercise. What have you tried ? What works for you ? What is not working for you ? HowToAskQuestionsOnJavaRanch ShowSomeEffort
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As with all programming projects, the first thing to do is break down the problem into manageable parts. I can think of about half a dozen methods you'd need to write to accomplish this task, and that's without writing/planning anything.

So how far have you gotten? What have you written? at the moment, we don't know if you need help installing the JDK, compiling your first program, parsing the variable/parameters, opening the file, or something else.

You'll find you'll get the best help if you as very specific, focused questions.
 
reply
    Bookmark Topic Watch Topic
  • New Topic