mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-09 23:43:16 +02:00
Move file existence check and improve process output handling
This commit is contained in:
@@ -449,18 +449,11 @@ public class YesNtInterpreter
|
||||
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
Console.WriteLine($"File \"{path}\" not found!");
|
||||
return false;
|
||||
}
|
||||
|
||||
string[] lines = File.ReadAllLines(path);
|
||||
|
||||
if (lines.Length <= 0)
|
||||
{
|
||||
Console.WriteLine($"File \"{path}\" is empty!");
|
||||
return false;
|
||||
}
|
||||
|
||||
runtimeInfo.WorkingDirectory = Path.GetDirectoryName(path);
|
||||
|
||||
for (int i = 0; i < lines.Length; i++)
|
||||
|
||||
Reference in New Issue
Block a user