I'm trying to create a string from a text file that pulls the characters after a specific sequence of characters to use as an output. Specifically, all the important characters in this text are proceeded by <1>, and end with an endline.
I currently am using fscanf, but it doesn't appear to be working:
fscanf(calibrate, "*[<1>] %s", enz);
where calibrate is the file I'm reading from (already opened), and enz is the array I want filled. Any advice would be appreciated. I already have a while loop in place to make sure I'm not at the end of the file.