Cosmos/Users/Sentinel/SentinelSystem/System/IO/FileImpl.cs
2015-05-02 21:23:31 -05:00

29 lines
No EOL
787 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Cosmos.IL2CPU.Plugs;
using SentinelKernel.System.FileSystem.VFS;
namespace SentinelKernel.System.Plugs.System.IO
{
[Plug(Target = typeof(File))]
public static class FileImpl
{
public static bool Exists(string aFile)
{
return FileSystem.VFS.VFSManager.FileExists(aFile);
}
//public static string ReadAllText(string aFile)
//{
// //Find file
// if (!File.Exists(aFile))
// return "Could not find file " + aFile;
// //throw new FileNotFoundException("Could not find file " + aFile);
// return VFSManager.ReadFileAsString(aFile);
//}
}
}