From 116f0979ef65fd30e04885fd98d7d239175da88d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 10 Nov 2014 14:47:33 +0000 Subject: [PATCH] edited file for copying database from resources --- Saviour Backup System/databaseTools.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Saviour Backup System/databaseTools.cs b/Saviour Backup System/databaseTools.cs index 9e0286d..3ea0add 100644 --- a/Saviour Backup System/databaseTools.cs +++ b/Saviour Backup System/databaseTools.cs @@ -18,13 +18,13 @@ namespace Saviour_Backup_System private static void copyDatabase() { - File.WriteAllBytes(@"\" + databaseName, Resources.saviour); + File.WriteAllBytes(@"" + databaseName, Resources.saviour); //copy file from resources to project file } internal static void init() { if (!File.Exists(databaseName)) { //if the database doesnt exists (program hasnt been run before) - + copyDatabase(); } } }