Java Question (1 Viewer)

tripoli

Well-Known Member
Joined
Sep 27, 2004
Messages
2,154
I need to read in an input text file into a basic java program. The file i'm reading in will have approx50 words and will be called "text.dat". I need to count the words in the file and output the number to a new file. I presume java recognises a space between a word? Anyone have any ideas as to the syntax I should be using to catagorise the space between a word in my code?

Thanks guys.
 

Users who are viewing this thread

Warning! This thread is more than 20 years ago old.
It's likely that no further discussion is required, in which case we recommend starting a new thread. If however you feel your response is required you can still do so.

21 Day Calendar

Alasdair Roberts/Harry Gorski-Brown
The Cobblestone
77 King St N, Smithfield, Dublin, D07 TP22, Ireland
Back
Top