Hello community,
I am using this code to write logs in a custom file
IPlatformFile& PlatformFile = FPlatformFileManager::Get().GetPlatformFile();
IFileHandle* FileHandle = PlatformFile.OpenWrite(*LogsFileName, true); // append mode
if (FileHandle)
{
FileHandle->SeekFromEnd(0); // end of file
FileHandle->Write((const uint8*)TCHAR_TO_ANSI(*MyText), MyText.Len());
delete FileHandle; // close file
}
All works fine but I can not write MyText on a new line. \n does not work.
Some one knows the code to write on the next line ?
Thanks.
Niarks