I propose a new function LoadBytesFile that would work exactly like LoadFile but instead of returning a string, it would return an array of number representing the byte array of the content of the file. Another way would be to return file content in base64 format.
Why ?
- Because actually we cannot read a sound or a video stored in a PBO with a DLL. Sound files and video files are made of non visual characters that would not be returned with LoadFile. Currently, if i want to read a sound or a video or any other kind of file with non visual characters, i need to base64 encode this file first and then store it in the PBO. I think this is particularly in the opposite of the modding and sharing spirit of Arma.
This is why i would appreaciate a LoadBytesFile function to return file content in byte array format or a LoadFileBase64 function, which can be easily read by an extension.