public TempFile GetNewTempFile(bool doCreateTheFile) { string s = System.IO.Path.GetRandomFileName(); s = System.IO.Path.Combine(_path, s); if (doCreateTheFile) { RobustFile.Create(s).Close(); } return TempFile.TrackExisting(s); }