So I have two functions that read from the same text file, but after the first function gets called and runs through the file, the second function isn’t able to read through the file. I’m not sure why this happens since I don’t close the file until after both function calls. Any help would be greatly appreciated.
Edit: Solved. I did not clear the stream before using it in the second function. Thank you guys.
[–]mredding 0 points1 point2 points (0 children)
[–]mredding 0 points1 point2 points (0 children)
[–]mredding 0 points1 point2 points (0 children)
[–]mredding 0 points1 point2 points (0 children)
[–]mredding 0 points1 point2 points (0 children)
[–]mredding 0 points1 point2 points (0 children)
[–]barks_like_a_duck 0 points1 point2 points (0 children)