public String directory = @"C:\temp\Comics\"; //F:\Wolfpack\Comics for desktop computer #endregion Fields #region Methods static void Main(string[] args) { AddNewFolders anf = new AddNewFolders(); List<String> directories = new List<String>(Directory.EnumerateDirectories(anf.directory)); anf.comicsToAdd = new List<String>(File.ReadAllLines(anf.directory + anf.comics2add)); anf.comics = new List<String>(File.ReadAllLines(anf.directory + anf.comicsList)); //First line checks the directory for a list of current folders. //The next 2 lines read the 2 text files and store them for later usage anf.mkDirs(directories); anf.repopComicsList(); }
static void Main(string[] args) { AddNewFolders anf = new AddNewFolders(); List <String> directories = new List <String>(Directory.EnumerateDirectories(anf.directory)); anf.comicsToAdd = new List <String>(File.ReadAllLines(anf.directory + anf.comics2add)); anf.comics = new List <String>(File.ReadAllLines(anf.directory + anf.comicsList)); //First line checks the directory for a list of current folders. //The next 2 lines read the 2 text files and store them for later usage anf.mkDirs(directories); anf.repopComicsList(); }