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



ReadNextWordInTextFile


Unit:SDL_filesys
Class: none
Declaration: function ReadNextWordInTextFile (const FVar: Textfile): string;

The function ReadNextWordInTextFile reads the next word from the open text file FVar and returns it as the function result. A word is defined by any combination of printable, non-black characters (i.e. ASCII characters >$20). If the file position points to a part of the text file which contains blanks or non-printable characters, the file position is automatically increased to the first printable character before reading the next word.



Last Update: 2012-Oct-20