From: "Hal E. Fulton" Date: 2002-09-23T20:58:01+09:00 Subject: Re: Yet Another "Thickie" question from Mark ----- Original Message ----- From: "Firestone, Mark - Technical Support" To: "ruby-talk ML" Sent: Monday, September 23, 2002 3:39 AM Subject: Yet Another "Thickie" question from Mark > I'm now working on porting a game called "Global Destruction" to my BBS > software. The way this game is written (in C++) it has a datafile full of > text (it's about 107k worth of text..) > > In my old language of Pascal, I would make this into a File of Records and > read it from the disk as I needed it. > > Should i just marshall this, or what? My instincts are to read it as I need > it... but my instincts don't work right in this language... I'd think it would be acceptable to put the data after __END__ and use DATA to read it. As for reading it "as needed": That made sense 20 years ago. But it's only 107K. That's what, 1/5000th of your PC's RAM? I'd say: Put it in an array and forget it. Hal