windowsgamessamples / UnityPorting

Porting Unity Games to Windows
40 stars 32 forks source link

WriteAllText and ReadAllText errors out on thread.wait #5

Open Adamcbrz opened 10 years ago

Adamcbrz commented 10 years ago

I am having the issue when I use either of these methods that it cause the AggregateException.

In GameManager.cs Start method I add the following code:

File.WriteAllText ("TestingPlugin.txt", "This is a test"); Debug.Log(File.ReadAllText ("TestingPlugin.txt"));

screen shot 2014-03-04 at 12 27 13 pm