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.