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....



ReadStreamUntil


Unit:SDL_streams
Class: none
Declaration: function ReadStreamUntil (InStream: TStream; SubString: string; var Error: integer): string;

The function ReadStreamUntil reads the stream Instream (starting at the current position) until the sub-string SubString is found. The variable parameter Error contains a zero value if the sub-string has been found and read, or a value of -1 if the end of the stream has been reached. In this case the function returns an empty string.



Last Update: 2023-Feb-06