Skip to content

Commit

Permalink
Update main.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaLu-dev committed Oct 15, 2022
1 parent 6d7d1c8 commit ccac651
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ static void Main(){
Console.WriteLine("You have selected " + input + " (" + inputT + ")");

Console.WriteLine("What's the name of the projeckt?");
string name = Console.ReadLine();
string name = Console.ReadLine();

//Checking and adding data directory
if (File.Exists(Directory.GetCurrentDirectory() + @"\data\path.txt") == false){
if (File.Exists(Directory.GetCurrentDirectory() + @"\data") == false){
Directory.CreateDirectory(Directory.GetCurrentDirectory() + @"\data");
Console.WriteLine("Added Directory " + Directory.GetCurrentDirectory() + @"\data");
}
File.Create(Directory.GetCurrentDirectory() + @"\data\path.txt");
Console.WriteLine("What's the path of the projeckts folder? (You only need to add this one time)");
path = Console.ReadLine();
File.WriteAllText(Directory.GetCurrentDirectory() + @"\data\path.txt", path);
path = File.ReadAllText(Directory.GetCurrentDirectory() + @"\data\path.txt");
//Checking and adding data directory
if (File.Exists(Directory.GetCurrentDirectory() + @"\data\path.txt") == false){
if (File.Exists(Directory.GetCurrentDirectory() + @"\data") == false){
Directory.CreateDirectory(Directory.GetCurrentDirectory() + @"\data");
Console.WriteLine("Added Directory " + Directory.GetCurrentDirectory() + @"\data");
}
File.Create(Directory.GetCurrentDirectory() + @"\data\path.txt");
Console.WriteLine("What's the path of the projeckts folder? (You only need to add this one time)");
path = Console.ReadLine();
File.WriteAllText(Directory.GetCurrentDirectory() + @"\data\path.txt", path);
path = File.ReadAllText(Directory.GetCurrentDirectory() + @"\data\path.txt");
}

//C#
if (input == "1"){
Expand Down

0 comments on commit ccac651

Please sign in to comment.