I am reading string from a line in a text file and for some reason the the code will not read the whole text file. It reads to some random point and then stops and leaves out several words from a line or a few lines. Here is my code.
Informed-Sport is a quality assurance programme for
sports nutrition products, suppliers to the sports
nutrition industry, and supplement manufacturing
facilities.
The programme certifies that all nutritional supplements
and/or ingredients that bear the Informed-Sport logo have
been tested for banned substances by the world class sports
anti-doping lab, LGC. Athletes choosing to use supplements
can use the search function above to find products that have
been through this rigorous certification process.
My program reads only up to "through" and leaves out "this rigorous certification process."