Uploading an object to a SDCard

Whoa, hang on a second. You’re overcomplicating the problem a bit. It definitely is not the simplest problem though, I agree with you on that.

Because the OP placed his thread in the VexCode V5 Text Support, this is actually more simple than it might sound.

VexCode has SD Card commands that can be used to write to the SD Card.

This is the VexCode API that has an index of the commands.
https://api.vexcode.cloud/v5/html/classvex_1_1brain_1_1sdcard.html

And this is an example from JPearman

Together, these should help the OP figure out how to do what they want.

Edit:
But this is not a beginner project for C++. If you aren’t very confident in C++, this probably isn’t the best thing to be working on.