I broke my C++ Program

So I keep getting errors. I am a beginner at this so i'm still learning. If anyone can help me out it would be greatly appreciated. I don't know why I keep getting these errors. Here is a link to the code. 


It would help if you specify which errors you are getting.

When you're searching for the '/' you were looking in patientInfo instead of pressure. After that you've misused substr. It looks like you're trying to give it a start and end index, but it takes a start index and length. You also should use a while loop instead of do while, in case the file is empty to begin with. Opening and closing the file should be done outside the loop.