I'm pretty sure this worked in an earlier version of C++Builder but now I need to figure out the easiest way to get this to work in C++Builder 10.1.
fprintf(out, "%s\n", Edit1->Text);
I have no idea why, but right now it seems to be writing only the first character of the text in Edit1 to the file.
Also if anyone has a link to a good source for best practices for dealing with strings C++Builder 10.1, I would be grateful.
After some more reading it seems the solution is pretty easy.
fwprintf(out, L"%s\n", Edit1->Text);
What I find most odd is, as near as I can tell, the Text property doesn't have a type. How are you supposed to know work with it when it has no type?