How would I open a file as binary and store the whole lot in a string? (for encryption)?

Thanks