My code only works if I separate the two if statements instead of nesting the highlighted if statement within the outer one though I don't understand why. enter image description here

The results are: enter image description here

1 Answer 1


You want to write all the blocks starting with the signature block until you reach another signature block. If you're only fwrite is within the if it's a signature section, then you won't be writing all of the blocks.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .