The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_sdlcolors
Class: TColorArray
Declaration: function ReadFromOpenTextFile (var InFile: TextFile; AdjustSize: boolean): boolean;

The function ReadFromOpenTextFile reads the color array elements from an open color file starting at the current file pointer. The color file has to conform to the format used by StoreOnFile or WriteToOpenTextFile.

The parameter InFile specifies the text file containing the colors. ReadFromOpenTextFile returns a TRUE value, if the data has been successfully read from the disk. If the parameter AdjustSize is set to TRUE, the size of the color array is adjusted to hold the entire data on the file. If AdjustVectorSize is FALSE the data will be read only if it fits into the array.

Last Update: 2014-Aug-13