MAJOR UPDATE:open file as binary. Seems like opening it in text for reading will allow for it to stop on hex 1B or value 27. will cause it to not read properly
uploading the file used to show that opening in text will cause program to stop on 1B whereas it won't stop in binary mode