Originally posted by Nayanjyoti Talukdar:
Hi Angela,
I think, u can use String class methods to seek for specific words location. RandomAccessFile won't be helpful for that matter.
--------------
Nayan
"I'm not back." - Bill Harding, Twister
Originally posted by Jim Yingst:
The hardest part of what you describe may be searching backwards for previous records. How are records separated in your file? Do they have constant length? Is each record on a separate line? Are there even distinct "records", or is the whole file just a bunch of text? The answers to these questions will help determine how you can best search for things in the file.
"I'm not back." - Bill Harding, Twister
Originally posted by Jim Yingst:
Why are all the values shown as numbers? Wouldn't it make more sense to have something like
LASTNAME=Yingst
FIRSTNAME=Jim
rather than
LASTNAME=5300680061006800
FIRSTNAME=41006e0075006a006100
? Did you generate this file yourself, or did it come from somewhere else? If you generated it yourself, I think you might need to work on how to print characters in a file.
Also, you talk about a Hashtable. You're not referring to an actual java.util.Hashtable, are you? We're talking about a file format, right? Or is there an actual java.util.Hashtable object somewhere that you're putting this data in?
Do not meddle in the affairs of dragons - for you are crunchy and good with ketchup. Crunchy tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|