• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Rahul Krupal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!