Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

File IO, iOS

$
0
0
I have this code for the function call when making a new game to store the game data. function SaveGame(){ LoadLevelConversion(); var sw : StreamWriter = new System.IO.StreamWriter(Application.persistentDataPath); ... it works fine on android, but it gives me this error on iOS. > UnauthorizedAccessException: Access to> the path> '/var/mobile/Applications/DFB80649-958C-411D-8ADB-3EFB885CC4B1/Documents'> is denied. at> System.IO.FileStream..ctor> (System.String path, FileMode mode,> FileAccess access, FileShare share,> Int32 bufferSize, Boolean anonymous,> FileOptions options) [0x00000] in> :0 any ideas why? I've also tried (Application.presistentDataPath + "Testfile.txt") and i get the same error but at a different file path.

Viewing all articles
Browse latest Browse all 4709

Trending Articles