I take it you're actually creating a struct of a files contents there, in theory you could do this with a byte array.

This might not be what you want and there might be a more simple solution to...