I used to include the .eof in getting the line inside a file, but i only used the while statement which gets all the words until nothing is left.
However, in the file you uploaded, i got some new ideas on getting just only 1 or two lines. Sir, does it belong to cstring library?
In the case of boundary between two dates, what library did you include?