Download

Cant save file as .docx .why?

  1. hey community , i am having a small issue with saving a file
    I am using this code to do that

bool URWtxtFiles::SaveTxt(FString SaveTextB, FString FileNameB)
{
return FFileHelper::SaveStringToFile(SaveTextB, *(FPaths::ProjectDir() + FileNameB));
}

saving files just fine as .txt but as soon a save as .docx it isnt opening .why ?
The file itself is saving , but not openning

I’m guessing it is because docx is not a text format, but a container format. It’s nothing more than a renamed zip file.

first which platform are you targetting to save file.