Results 1 to 2 of 2
- 11-07-2009, 06:15 PM #1
Member
- Join Date
- Dec 2008
- Posts
- 17
- Rep Power
- 0
Reading & Analyzing a Text file and
Hi everyone ..
Actually I have a little problem with reading and analyzing files in java :
if I have a file which contains an English text, and I want to analyze .. and I want to count the number of specific words , and print their index in the file !
Example :
"In these ways, the testing methodology provides a window into the total Web Experience from the customer’s point of view, providing insight and direction for business decision- makers. Marketing executives discover how they should allocate resources for maximal impact, while designers obtain insight into why particular features and functions are not working as planned and how to best modify them."
in this text : I have 14 words that their length is 3
and 3 words as "and", in the indexes : (i,j) , 'i' is the line number and 'j' is the word number in that line ..
Note : we will ignore the commas and dots.
question : how do I know if it's gonna be new line, space or whatever ?
thanks for help :)
- 11-07-2009, 06:47 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
Reading Integers from a text file
By tress in forum New To JavaReplies: 6Last Post: 02-26-2011, 05:45 PM -
Reading text file into an array
By Mahesh_ps in forum New To JavaReplies: 1Last Post: 10-09-2009, 03:04 PM -
reading data from text file .. help plz
By Thug heart in forum New To JavaReplies: 7Last Post: 02-15-2009, 07:29 PM -
Reading two text file and sum them up
By matt_well in forum New To JavaReplies: 36Last Post: 07-22-2008, 02:55 AM -
Reading text file
By Lennon-Guru in forum New To JavaReplies: 1Last Post: 12-15-2007, 11:38 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks