I am using Match Pattern to determine if a header is correct.
I read the file in and search for the regular expression.
The issue I am having is when I change the header by removing a character, when the header is rewritten as it is supposed to, but it decrements the next written character from the data.
I want to only rewrite the information on the first line (header) and not have any other portion of the file affected.