I'm creating an app that should be accessable from every platform (android, IOS, windows). At this moment I'm saving a file that is set to a specific path. c:\test\test.exe. Now I know that Android and IOS don't have such directory. I was wondering if it was possible to save the file to a relative path? If not I might have to adapt the code that checks on what kind of device the app is running
psuedocode:
If runningOnWindowsOS writefile(c:\test\test.txt)
if runningOnAndroid writefile(NOCLUE)
If runningOnIOS writefile(NOCLUEEITHER)
this is my code at the moment:
string path = @"C:\test\test.txt";
string createText = txt3.text + txtToLog + System.Environment.NewLine;
File.WriteAllText(path, createText);
any clues on how to proceed with this