[fpc-pascal]OOP for dummies...

James_Wilson at i2.com James_Wilson at i2.com
Fri Jun 15 14:03:41 CEST 2001


> OK, I've looked at your class sample (not the object one though,
> since I don't know much about objects). The biggest problem I see
> is in your file-reading loop; the Data field always contains the
> content of the last line. The updated file contains a loop that
> seems to read my sample text file fine, as well as a few other
> minor changes.

Thanks for responding.

I took a look at what you had sent, but it appears as though you missed 
the original intent of my question. I can print the data as it's read from 
the file, but not after it has been. I'm going to use this for a file 
viewer, so I need to read the file into memory and then access the data 
via some type of index. In an array I can use ArrayName [Index] to point 
to any element of the array but I can't seem to duplicate that 
functionality for a 'dynamic' structure.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20010615/1e7f7564/attachment.html>


More information about the fpc-pascal mailing list