Visual Basic 6 |
EN NL TR |
The next snipset |
Test if lines in a text file are correctly grouped What does this code do? The procedure will open a text file and test if the lines of text are grouped correctly. A group of lines consist of a number of non-empty lines seperated by an empty line. The number of lines in a group is determined by the first group encountered. The procedure doesn't do any error checking, so if an error occurs it will break.
An example of a correctly grouped text file An example of a incorrectly grouped text file The first group has 4 lines, but 2nd group consists of only 3 lines. Thus fhis file is incorrectly grouped.
|
The next snipset |