From d50bb3c58f785a72d01290cd8f7fc63d0132e5a0 Mon Sep 17 00:00:00 2001 From: Ross Larson Date: Tue, 24 Sep 2019 21:20:48 -0500 Subject: [PATCH] Moves informational CSV files into info directory --- Program.cs | 8 ++++---- PositionInfo.csv => info/PositionInfo.csv | 0 .../RanksToProjectedPoints.csv | 0 .../SchoolStatesAndConferences.csv | 0 StatesToRegions.csv => info/StatesToRegions.csv | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename PositionInfo.csv => info/PositionInfo.csv (100%) rename RanksToProjectedPoints.csv => info/RanksToProjectedPoints.csv (100%) rename SchoolStatesAndConferences.csv => info/SchoolStatesAndConferences.csv (100%) rename StatesToRegions.csv => info/StatesToRegions.csv (100%) diff --git a/Program.cs b/Program.cs index 4391f83..18c62d1 100644 --- a/Program.cs +++ b/Program.cs @@ -105,7 +105,7 @@ private static void CreateCombinedCSVWithExtras() { System.Console.WriteLine("Creating the big CSV....."); // Get Schools and the States where they are located. - var schoolsAndConferences = System.IO.File.ReadAllLines("SchoolStatesAndConferences.csv") + var schoolsAndConferences = System.IO.File.ReadAllLines($"info{Path.DirectorySeparatorChar}SchoolStatesAndConferences.csv") .Skip(1) .Where(s => s.Length > 1) .Select( s => @@ -116,7 +116,7 @@ private static void CreateCombinedCSVWithExtras() .ToList(); //Get position types - var positionsAndTypes = System.IO.File.ReadAllLines("PositionInfo.csv") + var positionsAndTypes = System.IO.File.ReadAllLines($"info{Path.DirectorySeparatorChar}PositionInfo.csv") .Skip(1) .Where(s => s.Length > 1) .Select( s => @@ -126,7 +126,7 @@ private static void CreateCombinedCSVWithExtras() }) .ToList(); // Let's assign these ranks point values. - var ranksToProjectedPoints = System.IO.File.ReadAllLines($"RanksToProjectedPoints.csv") + var ranksToProjectedPoints = System.IO.File.ReadAllLines($"info{Path.DirectorySeparatorChar}RanksToProjectedPoints.csv") .Skip(1) .Where(s => s.Length > 1) .Select( s => @@ -215,7 +215,7 @@ private static void CheckForMismatches(string csvFileName) { System.Console.WriteLine("Checking for mismatches in " + csvFileName + "....."); // Read in data from a different project. - var schoolsAndConferences = System.IO.File.ReadAllLines("SchoolStatesAndConferences.csv") + var schoolsAndConferences = System.IO.File.ReadAllLines($"info{Path.DirectorySeparatorChar}SchoolStatesAndConferences.csv") .Skip(1) .Where(s => s.Length > 1) .Select( s => diff --git a/PositionInfo.csv b/info/PositionInfo.csv similarity index 100% rename from PositionInfo.csv rename to info/PositionInfo.csv diff --git a/RanksToProjectedPoints.csv b/info/RanksToProjectedPoints.csv similarity index 100% rename from RanksToProjectedPoints.csv rename to info/RanksToProjectedPoints.csv diff --git a/SchoolStatesAndConferences.csv b/info/SchoolStatesAndConferences.csv similarity index 100% rename from SchoolStatesAndConferences.csv rename to info/SchoolStatesAndConferences.csv diff --git a/StatesToRegions.csv b/info/StatesToRegions.csv similarity index 100% rename from StatesToRegions.csv rename to info/StatesToRegions.csv