DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


ReadStringFromTextFile

Declaration: ReadStringFromTextFile (FName, StartTrigger, EndTrigger: string): string;
The function ReadStringFromTextFile reads text from the file FName and returns the text between the two trigger strings StartTrigger and EndTrigger as the function value.

The search for the trigger strings is not case-sensitive. Leaving the StartTrigger empty causes the file to be read from the beginning, leaving the EndTrigger empty causes the file to be read until the end of file.

Hint: Please note that ReadStringFromTextFile assumes that the file FName is a text file. Reading from a binary file may result in unpredictable behavior of the routine.