Forums Register Login

reading in file content

+Pie Number of slices to send: Send
Hi,
Could anyone tell me how i could read in an entire list of words into one entire string?
Or how do i read in a list of words into a hash set? Because i think that might be quicker?
I'd be grateful if you could give me a code snippet too please.
Thanks.
+Pie Number of slices to send: Send
sorry for multiple posts, but
what's the fastest possible way i could read in a large list of words from 2 files,[ do a search - have that myself] and print out the results?
+Pie Number of slices to send: Send
The quickest (and probably simplest) thing is to use the java.util.Properties class which is a descendant of Map. This means you can create a file of name-value pairs and read the whole file into memory with a call to Properties.load().
Hope this helps
[This message has been edited by Iain Lowe (edited October 17, 2001).]
Your mother is a hamster and your father smells of tiny ads!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 675 times.
Similar Threads
XSLT for Pre-Processing
API for English dictionary in java
Vocabulary building
Can synchronization completely guarantee thread safety?
Cookbook: Probem, Solution, Discussion...
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:15:01.