Streamwriter writealltext on android in existing file, it clear it, but works fine on pc.
I got a problem, I want save string to text file, I'm using File.WriteAllText(filePath, "some string"); Where filePath = Application.persistentDataPath + "/filename.txt"; On pc it works fine, BUT when build it on android: -if there is no file, it will create it and write "some string" in it -if there is file already, it will just delete all text content from file
Your answer
Follow this Question
Related Questions
*SOLVED* Error writing to IOS file system works on android & editor 1 Answer
FileStream' does not contain a definition for 'Close' 1 Answer
What is binaryformatter and how to use it? And how to use filestream? 1 Answer
android on glees 3.0 not is supported unity,android on Gless 3.0 not is supported unity 0 Answers
Game stuck in android while loading google ads (works fine with test adUnits) 0 Answers