summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Analizator9000/Analizator9000/DealerParser.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Analizator9000/Analizator9000/DealerParser.cs b/Analizator9000/Analizator9000/DealerParser.cs
index e6cadad..b5240cb 100644
--- a/Analizator9000/Analizator9000/DealerParser.cs
+++ b/Analizator9000/Analizator9000/DealerParser.cs
@@ -186,6 +186,10 @@ namespace Analizator9000
/// <returns>Input script contents.</returns>
public String saveFile()
{
+ if (!Directory.Exists("files"))
+ {
+ Directory.CreateDirectory("files");
+ }
String filename = Utils.getFilename("dealer");
StreamWriter file = new StreamWriter(@"files\" + filename);
String predealStr = "";