//The constructor for saving the uploaded file. public FileHandler(HttpPostedFileBase fileHTTP, string saveDir, bool includeStopwords) { pfn = new PersistentFileNamer(saveDir); this.uploadedFileName = Path.GetFileName(fileHTTP.FileName); this.includeStopwords = includeStopwords; SaveFile(fileHTTP); }
//A simpler constructor if a file was not uploaded. public FileHandler(string saveDir) { pfn = new PersistentFileNamer(saveDir); }