Question by
xnooztvfr · Dec 19, 2015 at 02:39 AM ·
unity 5programmingcodepage
System.IO.File' does not contain a definition for `ReadAllBytes'
Hello, I buy Mobile Strategy Game Kit and I read the literature. After importing Ngui and 2D Toolkit, I have this error message:
Assets/Scripts/Save/SaveLoadWWW.cs(127,51): error CS0117: `System.IO.File' does not contain a definition for `ReadAllBytes'
The error line is:
byte[] levelData = System.IO.File.ReadAllBytes(filePath + fileNameLocal + fileExt);//full local save file
You have an idea? thank you, Best regards.
Comment
Answer by xnooztvfr · Dec 19, 2015 at 03:05 AM
Resolved, I change platform. The webplayer does not support ReadAllBytes.
Answer by Louis_Since2012 · Jun 04, 2016 at 06:20 AM
Change platform. Default platform is WebPlayer.
Your answer
Follow this Question
Related Questions
UI Text is Blurry in RenderTexture 1 Answer
I need help with a error: APIUpdaterRuntimeServices 1 Answer
Gameobject wont set active 0 Answers
Does multiple spamming a button break it? 2 Answers
Problem with Jump Animation 0 Answers