I want to create a file that is needed for a process that I want to start. Unfortunately both functionalities are not available (at least not documented) for the "JavaScript library for App Services", so I have to use C++ which I have almost no experience with. However, to create instance specific files you recommended using common/interface/files.h in another thread and I managed to create a program using this lib. But when attempting to write a file it failes with "Start fopen() failed (2 : No such file or directory)", in both cases running using VS2019 and started in the AP Manager.
- I created an IFilesProvider (as filesProvider) using CreateFilesProvider()
- I created IFiles (as files) using filesProvider->CreateFiles() and provided AppService->GetAppServiceId() and dbName as documented
- I tried to create IFilesWrite using files->Write() but this failes with the mentioned message
The documentation says that "/apps/<serviceId>/<dbName>.files [...] is a folder created by the taskmanager for the app", but when I look into the system there is only a /apps/<serviceId>/<dbName>.temp when the instance is running.
Am I missing something?