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



FilterCopyTextFile


Unit:SDL_filesys
Class: none
Declaration: function FilterCopyTextFile (InFName, OutFName: string; SuppressedLines: TIntArray): integer;

The function FilterCopyTextFile copies the text file specified by InFName to the output file OutFName, removing the lines specified in the array SuppressedLines from the file. Please note that the line numbers are 1-based.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the file InFName does not exist
-2 ... cannot create the file OutFName (disk full or write-protected)

Hint: Applying FilterCopyTextFile to binary files will produce an undefined output.



Last Update: 2023-Feb-06