Jamie Hale wrote: I would have guessed they were asking for the simple fopen(), fgets(), etc. I had a look at those functions last night ( fulfilling a contract at the last minute, he wanted me to use them ), and I thought they looked way ugly. I try to avoid C functions whenever I can. Jamie Hale wrote: But this is a nice solution. Prolly waaaaay over the poster's head. Probably. My hope was by showing an elegant C++ way of doing it that he may well dig deeper and analyse why it all works. That's how I learned most of the standard C++ stuff I know, by asking questions on comp.lang.c++, making a fool of myself often, and spending a lot of time trying to figure out what the answers I was given meant. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff. Picture a world without war, without hate. And I can picture us attacking that world, because they would never expect it.
Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now