> ...
>> I have to read a text file with fixed length record.
[quoted text clipped - 12 lines]
>
> Andrew T.
>> ...
>>> I have to read a text file with fixed length record.
>> All of it? Or just parts?
>>> ..The file can be in
>>> 2 formats. The first one has linefeed terminator for each record. The
>>> second format does NOT have a linefeed.
>>> What would be the best way of reading this text file.
>> Depends on things you didn't mention.
>>
>> e.g. If it's a) from above, I'd tend to use a line reader..
>> if b) a RandomAccessFile.
> He didn't mention them but it seems that you did just fine being able to
> answer his question by giving him the options he has so what's the big
[quoted text clipped - 10 lines]
> is given. You still gave him advice that covers his problem so if he
> didn't specify everything up front, so what?
As I read Andrew's post, his questions *are* part of the advice. He's helping
the OP by giving examples of questions the OP can ask themself, which
questions will empower the OP to achieve answers independently, thus improving
the OP's skills. If Andrew had spoon-fed the answers without giving the
reasoning behind them, the OP would not have benefited as much.
It is well-established good practice to think through a programming (or any
engineering) problem in detail. By encouraging folks to do that, Andrew is
helping them. It's also more effective at getting useful answers on Usenet to
phrase one's questions thoroughly and precisely.
"Build a man a fire, you warm him for an hour.
Set a man on fire, you warm him for the rest of his life."
- Lew