Example #1
0
 //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);
 }
Example #2
0
 //A simpler constructor if a file was not uploaded.
 public FileHandler(string saveDir)
 {
     pfn = new PersistentFileNamer(saveDir);
 }