UnityEngine.Windows.File does not exist (5.4.1f1)

Hey guys,

am I missing something? This code

using UnityEngine.Windows;

if(File.Exists("File01.txt"))

gives the error

error CS0103: The name `File' does not exist in the current context

Additionally, I cant find the namespace “File” in VisualStudio either.
Is there something I should be aware of? Since I am already here, is there an
alternative way of doing this? (Windows Standalone)

EDIT:
I can access System.IO.File. Is this what you are supposed to use instead?

Exactly the same problem on my side, besides that UnityEnginge.Windows.File even works inside Unity and is found by Visual Studio, but not when deplyoing. No solution so far.

Adding “using System.IO” in the script solved the issue for me!,Just add “using System.IO” to the script. That solved it for me.