Hi! I have a .ini file located in a specific folder of an Android device that I need to read and parse the data. I dont have idea how to achieve this.
Any help?
Thanks!
Dany
Hi! I have a .ini file located in a specific folder of an Android device that I need to read and parse the data. I dont have idea how to achieve this.
Any help?
Thanks!
Dany
Lately I am googling for UE4 / Android issues and the only replies/solutions I found are my own replies LOL. So I solved and will reply the solution I found here just in case the future me googling or anyone else needs the answer
I just read the file like this:
/// this is my file variable destination
FString myFileContents = "";
///this is the address of my file
FString myFilePAth = FString("/mnt/sdcard/DANY/TEST/MyInitFile.ini");
/// load the file to my string destination variable
FFileHelper::LoadFileToString(myFileContents,*myFilePAth);
/// if my destination variable is not empty then my file was found
if (myFileContents !="")
GEngine->AddOnScreenDebugMessage(-1, 15.0f, FColor::White, myFileContents);
else
GEngine->AddOnScreenDebugMessage(-1, 15.0f, FColor::White, FString::Printf(TEXT("FILE NOT FOUND")));
Cheers Dany of the Future!