If File Exists Method (C#)
Posted: Tue Mar 15, 2011 9:15 pm
I'm working on a dos style operating system. For this I'm using Cosmos.
I have a problem on my file manager, when I use the code:
I get the error:
Does anyone know a solution to this problem?
I have a problem on my file manager, when I use the code:
Code: Select all
using System;
using System.IO;
// See if this file exists from user input (whats typed)
if (File.Exists(UserInput))
{
Console.WriteLine("The file exists.");
}
Code: Select all
*** System Fault *** General Protection Fault at 0x005ADF6F