Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

`System.IO.File' does not contain a definition for `ReadAllBytes'?

$
0
0
I have no clue what happened but all of a sudden I get this error that says: `System.IO.File' does not contain a definition for `ReadAllBytes' I don't know why the unity engine is freaking out about this error, but monodevelop is not getting the error and is instead showing the documentation as if it was working. And this is preventing me from playing the editor in play-mode because it counts as a compiler error. tex.LoadImage(File.ReadAllBytes(imageFiles[i])); I even have the namespace: using System.IO; What am I doing wrong here? What could have happened that is causing this? It was working before, but now it thinks it is broken.

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>