While developing an android application (and iOS), using the C++ builder, I ran into an issue with opening a file. I followed the tutorial from the documentation (http://docwiki.embarcadero.com/RADStudio/Berlin/en/Resource_Files_Support), and used the code from there.
I added in the text file, using the deployment manager, and verified that the file is saving in the device. However I get an error whenever I try to access the file. The error I get is:
Access violation at address 9EB7DF54, accessing address 0000000C
The code I used is:
TStringList *List = new TStringList;
List->LoadFromFile(System::Ioutils::TPath::GetDocumentsPath() + PathDelim + "cat_99.txt");
String json_array = List->Text;
I have been trying to fix this issue for hours. Could someone please help me out?