I have an array of strings that needs to be written to a binary file. However, I have to keep the format of the file. That being 81 bytes per string to an amount of 40 strings in total. If the string array is smaller they need to be filled with unsigned bytes. Any ideas? Thank you very much in advance for the answer.
Start with a string constant of 81 bytes containing the "fill" you need. Then use "Replace Substring" to insert your text into the string overwriting the first part and there you go!
Pad your strings prior to the binary write. You could combine your padding with limiting (to a maximum of 40) the amount of elements taken from the array.