I am building a script that takes form input and writes it to a file in a specified packed format. Input from a second form need to update the record created from the first form. I am having trouble replacing the record with the new values.
When the second form is submitted I search for the email address in the record but unpacking each line into an array. If the email address matches then I replace elements of the array with the new values then re-pack the array. When I try to use syswrite to write to a specific location in the file, it seems to be overwriting the entire file with nothing.
When the second form is submitted I search for the email address in the record but unpacking each line into an array. If the email address matches then I replace elements of the array with the new values then re-pack the array. When I try to use syswrite to write to a specific location in the file, it seems to be overwriting the entire file with nothing.