Check out example codes for "Temporary file using MSFT API in cpp". It will help you in understanding the concepts better.

Code Example 1

using namespace System::Security;using namespace System::IO; ... String tempFolder;try {  tempFolder = Path::GetTempPath();}catch(SecurityException* ex){  // probably means that you don't have the required permissions}catch(Exception* ex){  // handle all other exceptions}

Learn ReactJs, React Native from akashmittal.com