Hey guys I am trying to read from a file and put that into a string called data,
which I believe I am doing correctly. When I print out whatever is in data in the first while loop, it prints it out correctly, but when I try to print out data outside of the while loop nothing gets printed. I am not able to figure this problem out please help. Thanks in advance (code below)