public string ConvertSitemapFinal(Guid uploadID, SitemapConverterOptions options) { string decodedSitemap; try { System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(TempFileLocation + CurrPathSeparator + "tmp-sitemap-" + uploadID.ToString()); SitemapXML.SitemapFilter filter = new SitemapXML.SitemapFilter(); filter.GenerateHyperlinks = (bool)options.Hyperlinks; filter.GenerateTable = (bool)options.Tables; filter.SortLexicographically = (bool)options.LexicographicOrder; filter.LoadSitemapFromFile(dir.FullName + CurrPathSeparator + "sitemap.xml"); filter.ConvertSitemap(); SDON.Model.Diagram diagram = filter.GetRoot(); decodedSitemap = SDON.SDONBuilder.ToJSON(diagram); dir.Delete(true); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = System.Net.HttpStatusCode.InternalServerError; WebOperationContext.Current.OutgoingResponse.ContentType = "text/plain"; dumpTempFolder(uploadID); return("Error when converting sitemap: " + e.Message); } return(decodedSitemap); }
public static void NewLocalData(string dataDirectory) { var file = new System.IO.DirectoryInfo(dataDirectory).GetFiles(PatchLauncher.DATAINFOFILENAME).FirstOrDefault(); DataInfo dataInfo = default; if (file is null) { dataInfo = new DataInfo { DataVersion = DefaultLocalDataVersion }; } else { using (var streamReader = new System.IO.StreamReader(file.FullName)) using (var jsonTxtReader = new Newtonsoft.Json.JsonTextReader(streamReader)) { var jser = new Newtonsoft.Json.JsonSerializer(); dataInfo = jser.Deserialize <DataInfo>(jsonTxtReader); dataInfo.DataVersion = DefaultLocalDataVersion; } file.Delete(); } using (var stream = System.IO.File.OpenWrite(System.IO.Path.Combine(dataDirectory, PatchLauncher.DATAINFOFILENAME))) using (var streamWriter = new System.IO.StreamWriter(stream)) using (var jsonTxtWriter = new Newtonsoft.Json.JsonTextWriter(streamWriter)) { var jser = new Newtonsoft.Json.JsonSerializer(); jser.Serialize(jsonTxtWriter, dataInfo); } }
public void NextSequenceTest() { List <int> seq = new List <int>(); List <int> expectedSeq = new List <int>(); var dir = new System.IO.DirectoryInfo("c:\\veneka\\seq\\"); dir.Delete(true); using (FileSequenceGenerator _seq = new FileSequenceGenerator(dir)) { for (int i = 0; i < 1000; i++) { seq.Add(_seq.NextSequenceNumber("test", ResetPeriod.DAILY)); expectedSeq.Add(i + 1); } } Assert.IsTrue(expectedSeq.SequenceEqual(seq)); seq = new List <int>(); expectedSeq = new List <int>(); using (FileSequenceGenerator _seq = new FileSequenceGenerator(dir)) { for (int i = 0; i < 1000; i++) { seq.Add(_seq.NextSequenceNumber("test", ResetPeriod.DAILY)); expectedSeq.Add(i + 1001); } } Assert.IsTrue(expectedSeq.SequenceEqual(seq)); }
private void DeleteSVNSubFolders(string FolderName) { string[] SubFolders = System.IO.Directory.GetDirectories(FolderName); foreach (string SubFolderName in SubFolders) { System.IO.DirectoryInfo DInfo = new System.IO.DirectoryInfo(SubFolderName); if (DInfo.Name == ".svn") { try { StartDeletingSVNFiles(SubFolderName, false); DInfo.Delete(true); lock (SyncRoot) { m_FoldersCount++; } } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.Message); } } else { DeleteSVNSubFolders(SubFolderName); } } }
private void btnDelFile_Click(object sender, EventArgs e) { System.IO.DirectoryInfo dirinfo = new System.IO.DirectoryInfo(".\\Attach"); if (dirinfo.Exists) { dirinfo.Delete(true); } }
static SetupResources() { #if !rtv_ignore_setup string path = Application.dataPath; string assetpath = "Assets" + EditorUtil.EditorConfig.ASSET_PATH; string sourceFolder = path + EditorUtil.EditorConfig.ASSET_PATH + "Icons/"; string source = assetpath + "Icons/"; string targetFolder = path + "/Editor Default Resources/RTVoice/"; string target = "Assets/Editor Default Resources/RTVoice/"; string metafile = assetpath + "Icons.meta"; bool exists = false; try { if (System.IO.Directory.Exists(sourceFolder)) { exists = true; if (!System.IO.Directory.Exists(targetFolder)) { System.IO.Directory.CreateDirectory(targetFolder); } var dirSource = new System.IO.DirectoryInfo(sourceFolder); foreach (var file in dirSource.GetFiles("*")) { AssetDatabase.MoveAsset(source + file.Name, target + file.Name); if (Util.Config.DEBUG) { Debug.Log("File moved: " + file); } } dirSource.Delete(); if (System.IO.File.Exists(metafile)) { System.IO.File.Delete(metafile); } } } catch (System.Exception) { //Debug.LogError("Could not move all files: " + ex); } finally { if (exists) { AssetDatabase.Refresh(); } } #endif }
private void DeletePrintFolder() { var folderInfo = new System.IO.DirectoryInfo(FullPrintJobFolder); if (folderInfo.Exists) { folderInfo.Delete(true); } }
public void Delete() { if (!Validation.CanWrite(innerInfo.FullName)) { DebugConsole.ThrowError($"Cannot delete directory \"{Name}\": failed validation"); return; } innerInfo.Delete(); }
public void Delete() { if (!Validation.CanWrite(innerInfo.FullName, false)) { DebugConsole.ThrowError($"Cannot delete directory \"{Name}\": modifying the contents of this folder/using this extension is not allowed."); return; } innerInfo.Delete(); }
public static void MoveDirectoryTo(string sourceDirectory, string targetDirectory) { var tmpSourceDirectory = new System.IO.DirectoryInfo(sourceDirectory); if (tmpSourceDirectory.Exists) { var tmpFolderName = tmpSourceDirectory.Name; var tmpTargetPath = System.IO.Path.Combine(targetDirectory, tmpFolderName); if (!System.IO.Directory.Exists(tmpTargetPath)) { try { System.IO.Directory.CreateDirectory(tmpTargetPath); } catch (System.SystemException exception) { loger.Error(exception); System.Diagnostics.Debug.WriteLine(exception.Message); } } var tmpFileInfos = tmpSourceDirectory.GetFiles(); foreach (var tmpFileInfo in tmpFileInfos) { try { tmpFileInfo.CopyTo(System.IO.Path.Combine(tmpTargetPath, tmpFileInfo.Name), true); tmpFileInfo.Delete(); } catch (System.SystemException exception) { loger.Error(exception); System.Diagnostics.Debug.WriteLine(exception.Message); } } var tmpSubDirectories = tmpSourceDirectory.GetDirectories(); foreach (var tmpDirectoryInfo in tmpSubDirectories) { MoveDirectoryTo(System.IO.Path.Combine(sourceDirectory, tmpDirectoryInfo.Name), tmpTargetPath); } if (tmpSourceDirectory.GetFiles().Length == 0 && tmpSourceDirectory.GetDirectories().Length == 0) { try { tmpSourceDirectory.Delete(); } catch (System.SystemException exception) { loger.Error(exception); System.Diagnostics.Debug.WriteLine(exception.Message); } } } }
// 削除系につき取り扱い注意 public static void deleteDirectory(string path) { // ディレクトリが読み取り専用かどううかとれんのだが // やっぱファイルを見ないとだめ?trueついてると問答無用かな System.IO.DirectoryInfo info = new System.IO.DirectoryInfo(path); if (info.Exists && (info.Attributes & System.IO.FileAttributes.ReadOnly) != System.IO.FileAttributes.ReadOnly) { info.Delete(true); } }
private void DeleteFolders() { System.IO.DirectoryInfo directoryInfo = new System.IO.DirectoryInfo(GetPath(1)); GC.Collect(); GC.WaitForPendingFinalizers(); directoryInfo.Delete(true); folders.RemoveRange(0, folders.Count); }
private void btnGenerating_Click(object sender, EventArgs e) { string nameSpace = txtNameSpace.Text; string assemblyName = txtAssemblyName.Text; string entityNameSpace, entityAssemblyName, queryParaNameSpace; string entityPath, queryParaPath, xmlPath; //ATA.Biz.Entity if (nameSpace.EndsWith(".entity", StringComparison.CurrentCultureIgnoreCase)) { nameSpace = nameSpace.Substring(0, nameSpace.Length - 7); } if (assemblyName.EndsWith(".entity", StringComparison.CurrentCultureIgnoreCase)) { assemblyName = assemblyName.Substring(0, assemblyName.Length - 7); } entityNameSpace = string.Concat(nameSpace, ".Entity"); queryParaNameSpace = string.Concat(nameSpace, ".Interface"); entityAssemblyName = string.Concat(assemblyName, ".Entity"); System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(txtClassPath.Text); if (dir.Exists) { dir.Delete(true); } dir.Create(); entityPath = dir.CreateSubdirectory("entity").FullName; xmlPath = dir.CreateSubdirectory("ormaping").FullName; queryParaPath = dir.CreateSubdirectory("querypara").FullName; foreach (string tableName in lstTables.CheckedItems) { mapper.NameSpace = entityNameSpace; mapper.AssemblyName = entityAssemblyName; mapper.LogicNameSpace = txtLogicNameSpace.Text; tableReader.TableName = tableName; // cmbTableName.Text; classWriter.BasePath = entityPath; classWriter.TableName = tableName; // cmbTableName.Text; classLogicWriter.BasePath = txtLogicPath.Text; queryParaWriter.BasePath = queryParaPath; queryParaWriter.TableName = tableName; queryParaWriter.NameSpace = queryParaNameSpace; mapWriter.BasePath = xmlPath; mapper.Generating(tableReader, classWriter, chkGenHelper.Checked ? classLogicWriter : null, mapWriter); mapper.Generating(tableReader, queryParaWriter); } MessageBox.Show("Map successfully generated!"); }
private void Cleanup() { try { zippedReportFileDirectoryInfo.Delete(true); } catch (Exception ex) { throw new Exception("Failed to recursively delete zipped report file directory: " + ex.Message); } }
/* * <summary> * remove the file * </summary> */ public void DeletePath() { try { _pathFile.Delete(); } catch (System.IO.DirectoryNotFoundException ex) { throw new System.IO.DirectoryNotFoundException(ex.Message + " - DeletePath"); } catch (System.IO.IOException ex) { throw new System.IO.IOException(ex.Message + " - DeletePath"); } catch (UnauthorizedAccessException ex) { throw new UnauthorizedAccessException(ex.Message + " - DeletePath"); } catch (System.Security.SecurityException ex) { throw new System.Security.SecurityException(ex.Message + " - DeletePath"); } }
private object[] extractCloudMetrics(IEnvelope env, List <string> lasFiles, double HeightCuttOff = 0, string DtmDir = "", double cutBelow = 0, double cutAbove = 150, int shape = 0) { string tempDir = System.IO.Path.GetDirectoryName(lasFiles[0]) + "\\temp"; string flas = tempDir + "\\flas.las"; string mPath = tempDir + "\\metrics.csv"; if (!System.IO.Directory.Exists(tempDir)) { System.IO.Directory.CreateDirectory(tempDir); } System.Diagnostics.Process proc = null; if (lasFiles.Count > 1) { string clipText = tempDir + "\\cl.txt"; using (System.IO.StreamWriter sw = new System.IO.StreamWriter(clipText)) { for (int i = 0; i < lasFiles.Count; i++) { string lsPath = lasFiles[i]; string dtmPath = DtmDir + "\\" + System.IO.Path.GetFileNameWithoutExtension(lsPath) + ".dtm"; string cf = tempDir + "\\cl" + i.ToString() + ".las"; proc = clipLasFile(lsPath, cf, env, dtmPath, cutBelow, cutAbove, shape); proc.WaitForExit(); sw.WriteLine(cf); } sw.Close(); } proc = mergeLasFiles(clipText, flas); proc.WaitForExit(); } else { string lsPath = lasFiles[0]; string dtmPath = DtmDir + "\\" + System.IO.Path.GetFileNameWithoutExtension(lsPath) + ".dtm"; proc = clipLasFile(lsPath, flas, env, dtmPath, cutBelow, cutAbove, shape); proc.WaitForExit(); } string exePath = "\"" + fusDir + "\\" + cloudMetrics + "\""; string args = "/new /minht:" + HeightCuttOff.ToString() + " /outlier:" + cutBelow.ToString() + "," + cutAbove.ToString() + " \"" + flas + "\" \"" + mPath + "\""; //Console.WriteLine("Cloud Metrics Args:\n\t" + args); proc = runFusion(exePath, args); proc.WaitForExit(); object[] outVls = returnCloudValues(mPath); try { System.IO.DirectoryInfo dinfo = new System.IO.DirectoryInfo(tempDir); dinfo.Delete(true); } catch { } return(outVls); }
public void SubdirectoriedAreWachedIfIncludeSubdirIsTrue() { System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo("."); System.IO.DirectoryInfo subdir = dir.CreateSubdirectory(Guid.NewGuid().ToString()); string fileName = System.IO.Path.Combine(subdir.FullName, Guid.NewGuid().ToString()); string newFileName = System.IO.Path.Combine(subdir.FullName, Guid.NewGuid().ToString()); try { AutoResetEvent raised = new AutoResetEvent(false); FileSystemWatcher tested = new FileSystemWatcher(dir.FullName); tested.IncludeSubdirectories = true; tested.EnableRaisingEvents = true; int CreateRaised = 0; int ChangedRaised = 0; int DeletedRaised = 0; int RenamedRaised = 0; tested.Created += (s, e) => CreateRaised++; tested.Changed += (s, e) => ChangedRaised++; tested.Deleted += (s, e) => DeletedRaised++; tested.Renamed += (s, e) => RenamedRaised++; using (System.IO.FileStream file = System.IO.File.Create(fileName)) { byte[] data = Encoding.UTF8.GetBytes("somedata"); file.Write(data, 0, data.Length); file.Flush(); file.Close(); }; Thread.Sleep(200); using (System.IO.FileStream file = System.IO.File.OpenWrite(fileName)) { byte[] data = Encoding.UTF8.GetBytes("somedata"); file.Write(data, 0, data.Length); file.Flush(); file.Close(); }; Thread.Sleep(200); System.IO.File.Move(fileName, newFileName); Thread.Sleep(200); System.IO.File.Delete(newFileName); Thread.Sleep(200); Assert.AreEqual(1, CreateRaised); Assert.IsTrue(ChangedRaised > 0); Assert.AreEqual(1, DeletedRaised); Assert.AreEqual(1, RenamedRaised); } finally { subdir.Delete(true); } }
private void cleanTempFolder(System.Object value) { try { if (value != null) { System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(value.ToString()); dir.Delete(true); dir = null; } } catch (System.Exception) { } }
private void DirectoryInfo_Refresh(bool isNetwork) { using (var tempRoot = new TemporaryDirectory(isNetwork)) { var folder = tempRoot.RandomDirectoryFullPath; var diSysIo = new System.IO.DirectoryInfo(folder + "-System.IO"); var diAlphaFS = new Alphaleonis.Win32.Filesystem.DirectoryInfo(folder + "-AlphaFS"); Console.WriteLine("System.IO Input Directory Path: [{0}]", diSysIo.FullName); Console.WriteLine("AlphaFS Input Directory Path: [{0}]", diAlphaFS.FullName); var existsSysIo = diSysIo.Exists; var exists = diAlphaFS.Exists; Assert.AreEqual(existsSysIo, exists); Assert.IsFalse(exists, "The directory exists, but is expected not to."); diSysIo.Create(); diAlphaFS.Create(); existsSysIo = diSysIo.Exists; exists = diAlphaFS.Exists; Assert.AreEqual(existsSysIo, exists); Assert.IsFalse(exists, "The directory exists, but is expected not to."); diSysIo.Refresh(); diAlphaFS.Refresh(); existsSysIo = diSysIo.Exists; exists = diAlphaFS.Exists; Assert.AreEqual(existsSysIo, exists); Assert.IsTrue(exists, "The directory does not exists, but is expected to."); diSysIo.Delete(); diAlphaFS.Delete(); existsSysIo = diSysIo.Exists; exists = diAlphaFS.Exists; Assert.AreEqual(existsSysIo, exists); Assert.IsTrue(exists, "The directory does not exists, but is expected to."); diSysIo.Refresh(); diAlphaFS.Refresh(); existsSysIo = diSysIo.Exists; exists = diAlphaFS.Exists; Assert.AreEqual(existsSysIo, exists); Assert.IsFalse(exists, "The directory exists, but is expected not to."); } Console.WriteLine(); }
private bool DeleteFolder(string drive, string parentFolderName, string foldername, string username, string password) { Logger.EnteringMethod(drive + ":\\" + parentFolderName + "\\" + foldername); NetUse netUse = new NetUse(); try { if (netUse.Mount(string.Empty, @"\\" + this.Name + @"\" + drive + "$\\" + parentFolderName, username, password)) { System.IO.DirectoryInfo folderInfo = new System.IO.DirectoryInfo(@"\\" + this.Name + @"\" + drive + "$\\" + parentFolderName + "\\" + foldername); if (folderInfo.Exists) { int attempt = 0; do { try { attempt++; Logger.Write("Trying to delete : " + foldername); folderInfo.Delete(true); Logger.Write(foldername + " deleted"); return(true); } catch (Exception ex) { Logger.Write("Failed to delete : " + foldername + ". " + ex.Message); System.Threading.Thread.Sleep(1000); } } while (attempt < 3); Logger.Write("Unable to delete the folder."); return(false); } else { Logger.Write("Can't find the folder"); return(false); } } else { Logger.Write("**** Unable to Mount the folder"); return(false); } } catch (Exception ex) { Logger.Write("**** " + ex.Message); return(false); } }
private static void RecursiveDirectoryDelete(System.IO.DirectoryInfo baseDir) { if (!baseDir.Exists) { return; } foreach (var dir in baseDir.EnumerateDirectories()) { RecursiveDirectoryDelete(dir); } baseDir.Delete(true); }
static StackObject *Delete_13(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.IO.DirectoryInfo instance_of_this_method = (System.IO.DirectoryInfo) typeof(System.IO.DirectoryInfo).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Delete(); return(__ret); }
public static void DeleteFI(String path) { var di = new System.IO.DirectoryInfo(path); var fi = new System.IO.FileInfo(path); if (di.Exists) { di.Delete(); } else if (fi.Exists) { fi.Delete(); } }
public static void DeleteDirectoryAndChildren(this System.IO.DirectoryInfo directory) { foreach (var file in directory.GetFiles()) { file.Delete(); } foreach (var subDirectory in directory.GetDirectories()) { subDirectory.DeleteDirectoryAndChildren(); } directory.Delete(); }
void DeleteDirrectory(System.IO.DirectoryInfo di) { foreach (var fi in di.GetFiles()) { fi.Delete(); } foreach (var d in di.GetDirectories()) { DeleteDirrectory(d); } di.Delete(); }
/* * A utility class to delete a File Geodatabase (FGDB). */ public static bool deleteFileGeodatabaseWorkspace(ref log4net.ILog log, string workspaceDirectory, string workspaceFolderName) { // attempt to delete the referenced File Geodatabase (FGDB) log.Debug("Attempting to delete the referenced File Geodatabase (FGDB)."); log.Debug("workspaceDirectory: " + workspaceDirectory); log.Debug("workspaceFolderName: " + workspaceFolderName); try { // verify the workspace does already exist log.Debug("Verifying if the File Geodatabase exists."); if (!System.IO.Directory.Exists(workspaceDirectory + "\\" + workspaceFolderName)) { // the File Geodatabase does not exist log.Warn("File Geodatabase does not exist. Unable to delete."); throw new System.Exception(Properties.Resources.fgdb_GeodatabaseUtilities_deleteFileGeodatabaseWorkspace_notfound); } else { // File Geodatabase exists, create a new DirecotryInfo object to represent the <name>.gdb log.Debug("File Geodatabase exists, creating a new DirectoryInfo object to represent the .gdb."); System.IO.DirectoryInfo dinfo = new System.IO.DirectoryInfo(workspaceDirectory + "\\" + workspaceFolderName); // once again, verifying the folder itself exists log.Debug("Checking again to see if the folder itself exists."); if (dinfo.Exists) { // the File Geodatabase folder exists. Attempt to delete it. log.Debug("File Geodatabase folder exists, attempt to delete it."); dinfo.Delete(true); // return true log.Debug("Returning true/successful."); return(true); } else { // the <name>.gdb folder does not exist, return false log.Debug("File Geodatabase folder does not exist, return false."); return(false); } } } catch (System.Exception ex) { // an unknown error occured, log and throw log.Error(ex); throw new System.Exception(Properties.Resources.fgdb_GeodatabaseUtilities_deleteFileGeodatabaseWorkspace_unknown); } }
public void logFunctionCreateDirectoryLogFile() { FileLogger.getInstance(filePath + "\\tmpForTest", "log.txt", TextFormatter.Instance).log(LogLevel.Debug, "First record after delete file"); System.IO.FileInfo fi = new System.IO.FileInfo(filePath + "\\tmpForTest" + "\\log.txt"); System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(filePath + "\\tmpForTest"); Assert.IsTrue(di.Exists); Assert.IsTrue(fi.Exists); #region undo di.Delete(true); #endregion }
private void dumpTempFolder(Guid uploadID) { try { System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(TempFileLocation + CurrPathSeparator + "tmp-sitemap-" + uploadID.ToString()); if (dir.Exists) { dir.Delete(true); } } catch (Exception) { } }
static public void Delete() { string path = @"C:\RACC\Data\"; System.IO.DirectoryInfo directory = new System.IO.DirectoryInfo(path); try { directory.Delete(true); Thread.Sleep(60000); directory.Create(); } catch (Exception) { directory.Create(); } }
static SetupResources() { #if !rtv_ignore_setup string path = Application.dataPath + "/"; string assetpath = path + "crosstales/RTVoice/"; string source = assetpath + "Icons/"; string target = path + "Editor Default Resources/RTVoice/"; string metafile = assetpath + "Icons.meta"; try { if (System.IO.Directory.Exists(source)) { if (!System.IO.Directory.Exists(target)) { System.IO.Directory.CreateDirectory(target); } var dirSource = new System.IO.DirectoryInfo(source); foreach (var file in dirSource.GetFiles("*")) { if (Util.Constants.DEBUG) { Debug.Log("File moved: " + file); } //file.CopyTo(target + file.Name); file.MoveTo(target + file.Name); } dirSource.Delete(); if (System.IO.File.Exists(metafile)) { System.IO.File.Delete(metafile); } AssetDatabase.Refresh(); } } catch (System.Exception ex) { Debug.LogError("Could not move all files: " + ex); } #endif }
public static void cleanupTempDirectories() { string mainPath = System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); string func = mainPath + "\\RmrsRasterUtilityHelp\\func"; string mos = mainPath + "\\RmrsRasterUtilityHelp\\mosaic"; string conv = mainPath + "\\RmrsRasterUtilityHelp\\conv"; string[] dirs = {func,mos,conv}; foreach (string s in dirs) { try { System.IO.DirectoryInfo dInfo = new System.IO.DirectoryInfo(s); if(dInfo.Exists) dInfo.Delete(true); } catch { } } }
private void delete_btn_Click(object sender, EventArgs e) { if (dataGridView1.Rows.Count > 0) { int currentRow = dataGridView1.CurrentCell.RowIndex; DialogResult result = MessageBox.Show("本当に削除してもよろしいですか?", "確認", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2); //何が選択されたか調べる if (result == DialogResult.OK) { //OKが選択された時 string id = (string)dataGridView1.CurrentRow.Cells[0].Value; _db.DeleteRecord(int.Parse(id)); RefreshDGV(); SelectRow(currentRow - 1); //ディレクトリのユーザー用データ構造を削除 System.IO.DirectoryInfo delDir = new System.IO.DirectoryInfo(_rootDir + id); // ディレクトリの削除 delDir.Delete(true); } } }
internal void CleanDirectoryAndFiles(string Path) { System.IO.DirectoryInfo _directory = new System.IO.DirectoryInfo(Path); foreach ( System.IO.DirectoryInfo _childDirectory in _directory.GetDirectories()) { CleanDirectoryAndFiles(_childDirectory.FullName); } System.IO.FileInfo[] _files = _directory.GetFiles(); foreach (System.IO.FileInfo _file in _files) { _file.Delete(); } _directory.Delete(); }
/* * A utility class to delete a File Geodatabase (FGDB). */ public static bool deleteFileGeodatabaseWorkspace(ref log4net.ILog log, string workspaceDirectory, string workspaceFolderName) { // attempt to delete the referenced File Geodatabase (FGDB) log.Debug("Attempting to delete the referenced File Geodatabase (FGDB)."); log.Debug("workspaceDirectory: " + workspaceDirectory); log.Debug("workspaceFolderName: " + workspaceFolderName); try { // verify the workspace does already exist log.Debug("Verifying if the File Geodatabase exists."); if (!System.IO.Directory.Exists(workspaceDirectory + "\\" + workspaceFolderName)) { // the File Geodatabase does not exist log.Warn("File Geodatabase does not exist. Unable to delete."); throw new System.Exception(Properties.Resources.fgdb_GeodatabaseUtilities_deleteFileGeodatabaseWorkspace_notfound); } else { // File Geodatabase exists, create a new DirecotryInfo object to represent the <name>.gdb log.Debug("File Geodatabase exists, creating a new DirectoryInfo object to represent the .gdb."); System.IO.DirectoryInfo dinfo = new System.IO.DirectoryInfo(workspaceDirectory + "\\" + workspaceFolderName); // once again, verifying the folder itself exists log.Debug("Checking again to see if the folder itself exists."); if (dinfo.Exists) { // the File Geodatabase folder exists. Attempt to delete it. log.Debug("File Geodatabase folder exists, attempt to delete it."); dinfo.Delete(true); // return true log.Debug("Returning true/successful."); return true; } else { // the <name>.gdb folder does not exist, return false log.Debug("File Geodatabase folder does not exist, return false."); return false; } } } catch (System.Exception ex) { // an unknown error occured, log and throw log.Error(ex); throw new System.Exception(Properties.Resources.fgdb_GeodatabaseUtilities_deleteFileGeodatabaseWorkspace_unknown); } }
public static void EmptyFolder(string sourceFolder) { System.IO.DirectoryInfo directory = new System.IO.DirectoryInfo(sourceFolder); foreach (System.IO.FileInfo file in directory.GetFiles()) { file.Delete(); } foreach (System.IO.DirectoryInfo dir in directory.GetDirectories()) { dir.Delete(true); } directory.Delete(); }
private void ReleaseUnmanagedResources() { var di = new System.IO.DirectoryInfo(_sandboxPath); if (di.Exists) { di.Delete(true); } }
static void Main() { // Delete a file by using File class static method... if(System.IO.File.Exists(@"C:\Users\Public\DeleteTest\test.txt")) { // Use a try block to catch IOExceptions, to // handle the case of the file already being // opened by another process. try { System.IO.File.Delete(@"C:\Users\Public\DeleteTest\test.txt"); } catch (System.IO.IOException e) { Console.WriteLine(e.Message); return; } } // ...or by using FileInfo instance method. System.IO.FileInfo fi = new System.IO.FileInfo(@"C:\Users\Public\DeleteTest\test2.txt"); try { fi.Delete(); } catch (System.IO.IOException e) { Console.WriteLine(e.Message); } // Delete a directory. Must be writable or empty. try { System.IO.Directory.Delete(@"C:\Users\Public\DeleteTest"); } catch (System.IO.IOException e) { Console.WriteLine(e.Message); } // Delete a directory and all subdirectories with Directory static method... if(System.IO.Directory.Exists(@"C:\Users\Public\DeleteTest")) { try { System.IO.Directory.Delete(@"C:\Users\Public\DeleteTest", true); } catch (System.IO.IOException e) { Console.WriteLine(e.Message); } } // ...or with DirectoryInfo instance method. System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(@"C:\Users\Public\public"); // Delete this dir and all subdirs. try { di.Delete(true); } catch (System.IO.IOException e) { Console.WriteLine(e.Message); } }
public void StartMinecraft() { SetProgress(); SetStatus("Cleaning up..."); var tmpdir = new System.IO.DirectoryInfo(System.IO.Path.Combine(App.GamePath, "tmp")); if (tmpdir.Exists) tmpdir.Delete(true); tmpdir.Create(); SetStatus("Starting client..."); var javaw = JavaPath.CreateJava(new[] { "-Xmx" + config.MaximalRam.ToMegabytes() + "M", "-Xincgc", /*Environment.Is64BitProcess*/ IntPtr.Size == 8 ? "-d64" : "-d32", "-Djava.library.path=" + App.StartupLibrarypath, "-Djava.io.tmpdir=" + System.IO.Path.Combine(App.GamePath, "tmp"), "-cp", App.StartupClasspath, "net.minecraft.client.Minecraft", l.CaseCorrectUsername, l.SessionId, "minas.mc.modernminas.de:25565" }); javaw.StartInfo.WorkingDirectory = App.GamePath; if (javaw.StartInfo.EnvironmentVariables.ContainsKey("APPDATA")) javaw.StartInfo.EnvironmentVariables["APPDATA"] = App.GamePath; else javaw.StartInfo.EnvironmentVariables.Add("APPDATA", App.GamePath); if (javaw.StartInfo.EnvironmentVariables.ContainsKey("HOME")) javaw.StartInfo.EnvironmentVariables["HOME"] = App.GamePath; else javaw.StartInfo.EnvironmentVariables.Add("HOME", App.GamePath); javaw.StartInfo.RedirectStandardError = true; javaw.StartInfo.RedirectStandardOutput = true; javaw.StartInfo.CreateNoWindow = true; Debug.WriteLine(string.Format("Starting minecraft, arguments: {0}", javaw.StartInfo.Arguments)); javaw.Start(); SetError(null); this.Dispatcher.Invoke(new Action(() => { this.Hide(); })); #if STATUS_WINDOW #warning Status window eats a high amount of CPU on a single core. Not recommended for release. // Status window System.Threading.Tasks.Task.Factory.StartNew( () => { this.Dispatcher.Invoke(new Action(w.Show)); while (!javaw.HasExited) { RefreshStatusWindowPos(); System.Threading.Thread.Sleep(750); // Slow refresh if visible } this.Dispatcher.Invoke(new Action(w.Close)); }); #endif // STDERR System.Threading.Tasks.Task.Factory.StartNew( () => { string lastError = null; while (!javaw.HasExited) { lastError = javaw.StandardError.ReadLine(); if (lastError != null) lastError = lastError.Trim(); Debug.WriteLine(string.Format("[Minecraft] STDERR: {0}", lastError)); if (lastError == null) continue; #if STATUS_WINDOW if (lastError.Contains("early MinecraftForge initialization")) this.Dispatcher.Invoke(new Action(() => { w.Show(); w.Fade(1.0, null, 250); })); else if (lastError.Contains("/panorama")) this.Dispatcher.Invoke(new Action(() => w.Fade(0.0, null, 10, (EventHandler)((sender, e) => { w.Hide(); })))); #endif lastError = string.Join(" ", lastError.Split(' ').Skip(3).ToArray()); #if STATUS_WINDOW // loading text Match m; if ((m = Regex.Match(lastError, "setupTexture: \"(.+)\"")).Success) lastError = "Loading texture: " + m.Groups[1].Value; //lastError = "Loading textures..."; else if (lastError.Contains("[STDOUT] Checking for new version")) lastError = "Checking for Optifine updates..."; else if (lastError.Contains("Connecting")) lastError = "Connecting to the server..."; else if ((m = Regex.Match(lastError, "TextureFX registered: (.+)")).Success) lastError = "Loading texture effects..."; else if ((m = Regex.Match(lastError, "TextureFX removed: (.+)")).Success) lastError = "Unloading texture effects..."; else if ((m = Regex.Match(lastError, "Loading custom colors: (.+)")).Success) lastError = "Loading custom colors..."; else if ((m = Regex.Match(lastError, "\\[(.+)\\] (Initializing|Starting|Loading|Attempting|Config) ([^\\s]+) .*")).Success) switch (m.Groups[1].Value) { case "STDOUT": if (m.Groups[3].Value.Length < 3) continue; lastError = "Loading " + m.Groups[3].Value + "..."; break; default: lastError = "Loading " + m.Groups[1].Value.Replace("ForgeModLoader", "Forge") + "..."; break; } else if ((m = Regex.Match(lastError, "\\[ForgeModLoader\\] Searching .*")).Success) lastError = "Loading modifications..."; else if ((m = Regex.Match(lastError, "\\(Audiotori\\) .+")).Success) lastError = "Loading audio system..."; else if ((m = Regex.Match(lastError, "\\(ATSystem\\) Performing .+")).Success) lastError = "Loading sounds..."; else continue; #endif this.Dispatcher.Invoke(new Action(() => w.SetStatus(lastError))); } Debug.WriteLine("[Minecraft] End of error stream"); // Error handling if (javaw.ExitCode != 0 /* No error at all */ && javaw.ExitCode != -1 && javaw.ExitCode != 1 /* Closed via clicking "X" */) this.Dispatcher.Invoke(new Action(() => SetError(string.Format("Minecraft error code {0}. {1}", javaw.ExitCode, lastError)))); this.Dispatcher.Invoke(new Action(() => { this.Close(); Environment.Exit(0); })); }, System.Threading.Tasks.TaskCreationOptions.AttachedToParent); // STDOUT System.Threading.Tasks.Task.Factory.StartNew(() => { while(!javaw.HasExited) { var lastError = javaw.StandardOutput.ReadLine(); if (lastError != null) lastError = lastError.Trim(); Debug.WriteLine(string.Format("[Minecraft] STDOUT: {0}", lastError)); if (lastError == null) continue; #if STATUS_WINDOW if (lastError.Contains("early MinecraftForge initialization")) this.Dispatcher.Invoke(new Action(() => { w.Show(); w.Fade(1.0, null, 250); })); else if (lastError.Contains("/panorama")) this.Dispatcher.Invoke(new Action(() => w.Fade(0.0, null, 10, (EventHandler)((sender, e) => { w.Hide(); })))); #endif lastError = string.Join(" ", lastError.Split(' ').Skip(3).ToArray()); #if STATUS_WINDOW // loading text Match m; if ((m = Regex.Match(lastError, "setupTexture: \"(.+)\"")).Success) lastError = "Loading texture: " + m.Groups[1].Value; //lastError = "Loading textures..."; else if ((m = Regex.Match(lastError, "TextureFX registered: (.+)")).Success) lastError = "Loading texture effects..."; else if ((m = Regex.Match(lastError, "TextureFX removed: (.+)")).Success) lastError = "Unloading texture effects..."; else if ((m = Regex.Match(lastError, "Loading custom colors: (.+)")).Success) lastError = "Loading custom colors..."; else if ((m = Regex.Match(lastError, "\\[(.+)\\] (Initializing|Starting)")).Success) lastError = "Loading " + m.Groups[1].Value + "..."; else if ((m = Regex.Match(lastError, "\\(Audiotori\\) .+")).Success) lastError = "Loading audio system..."; else if ((m = Regex.Match(lastError, "\\(ATSystem\\) Performing .+")).Success) lastError = "Loading sounds..."; else continue; #endif this.Dispatcher.Invoke(new Action(() => w.SetStatus(lastError))); } }); }
private void cleanTempFolder( System.Object value ) { try { if ( value!=null ) { System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo (value.ToString()); if ( dir.Exists ) dir.Delete(true); dir=null; } } catch( System.Exception e ) { if ( log.IsErrorEnabled ) log.Error("Error cleanling up dir", e); } }
/// <summary> /// 删除整个目录和文件 /// </summary> /// <param name="folderPathName">目录名称</param> /// <returns>bool</returns> public static bool RemoveFolder(string folderPathName) { try { System.IO.DirectoryInfo delFolder = new System.IO.DirectoryInfo(folderPathName); if (delFolder.Exists) { delFolder.Delete(); } return true; } catch { return false; } }
protected void GV_Result_RowCommand(Object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Approved") { int newindex = Convert.ToInt32(e.CommandArgument); string quoteid = GV_Result.Rows[newindex].Cells[2].Text; string tourid = GV_Result.Rows[newindex].Cells[3].Text; string usrid = Session["usersid"].ToString(); DataSet ds = objfitquote.fetchallData("FETCH_DATA_FOR_ALL_QUOTED_FIT_QUOTES", usrid); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { if (quoteid == ds.Tables[0].Rows[i]["QUOTE_ID"].ToString() && tourid == ds.Tables[0].Rows[i]["TOUR_ID"].ToString()) { Session["editorderstatus"] = ds.Tables[0].Rows[i]["ORDER_STATUS"].ToString(); } } Response.Redirect("~/Views/FIT/AdminBookingFit.aspx?TOURID=" + tourid + ""EID=" + quoteid); } else if (e.CommandName == "Disapproved") { int newindex = Convert.ToInt32(e.CommandArgument); string quoteid = GV_Result.Rows[newindex].Cells[2].Text; objfitquote.DeleteQuote(quoteid); System.IO.DirectoryInfo thisFolder = new System.IO.DirectoryInfo(Server.MapPath("~/Views/FIT/Quotes/" + quoteid.ToString())); foreach (System.IO.FileInfo file in thisFolder.GetFiles()) { file.Delete(); } if (thisFolder.Exists) { thisFolder.Delete(); } DataSet ds = objfitquote.fetchallData("FETCH_DATA_FOR_ALL_QUOTED_FIT_QUOTES", Session["usersid"].ToString()); if (ds.Tables[0].Rows.Count == 0) { } else { GV_Result.DataSource = ds; GV_Result.DataBind(); } Updateconfirm.Update(); Master.DisplayMessage("Quote Deleted Successfully.", "successMessage", 8000); } }
private void cleanTempFolder( System.Object value ) { try { if ( value!=null ) { System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo (value.ToString()); dir.Delete(true); dir=null; } } catch( System.Exception ) { } }
static void Main(string[] args) { string tempPath = System.Environment.GetEnvironmentVariable ("TEMP"); if (tempPath == null) { tempPath = System.Environment.GetEnvironmentVariable ("TMP"); } if (tempPath == null) { tempPath = "..\\.."; } Exception exc = null; System.DateTime now = System.DateTime.Now; System.Security.Cryptography.X509Certificates.X509Certificate xc = null; System.IO.StreamWriter sw = null; System.IO.StreamReader sr = null; System.IO.DirectoryInfo di = null; bool b = false; System.DateTime dt = InicDateTime (); string[] sL = null; System.IO.FileInfo[] fiL = null; System.IO.DirectoryInfo[] diL = null; System.IO.FileSystemInfo[] fsiL = null; System.IO.FileStream fs = null; System.IO.FileInfo fi = null; System.IAsyncResult asr = null; int i = 0; long l = 0; string s = null; System.IO.IsolatedStorage.IsolatedStorageFile isf = null; System.IO.IsolatedStorage.IsolatedStorageFileStream isfs = null; byte[] bL = null; System.Diagnostics.Process p = null; System.IO.FileInfo fileInfo = new System.IO.FileInfo (tempPath + "\\resources4file.txt"); fileInfo.Create ().Close (); System.IO.StreamWriter outFile = fileInfo.AppendText (); System.Console.WriteLine (tempPath + "\\resources4file.txt"); try { exc = null; xc = null; now = System.DateTime.Now; xc = System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile (tempPath + "\\dummyFile1.txt"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile1.txt"); outFile.WriteLine ("Func: " + "System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (xc)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; xc = null; now = System.DateTime.Now; xc = System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromSignedFile (tempPath + "\\dummyFile2.txt"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile2.txt"); outFile.WriteLine ("Func: " + "System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromSignedFile(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (xc)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } /* try { System.IO.BinaryWriter.Write (); System.IO.BinaryWriter.Seek (); System.IO.BinaryWriter.Flush (); System.IO.BinaryWriter.Close (); System.IO.BinaryWriter bw = new System.IO.BinaryWriter (); } catch (Exception e) { } try { System.IO.BufferedStream.WriteByte (); System.IO.BufferedStream.Write (); System.IO.BufferedStream.ReadByte (); System.IO.BufferedStream.Read (); System.IO.BufferedStream.SetLength (); System.IO.BufferedStream.Seek (); System.IO.BufferedStream.EndWrite (); System.IO.BufferedStream.BeginWrite (); System.IO.BufferedStream.EndRead (); System.IO.BufferedStream.BeginRead (); System.IO.BufferedStream.Flush (); System.IO.BufferedStream.Close (); System.IO.BufferedStream bs = new System.IO.BufferedStream (); } catch (Exception e) { } */ try { exc = null; try { exc = null; sw = null; now = System.DateTime.Now; sw = new System.IO.StreamWriter (tempPath + "\\dummyFile3.txt"); outFile.WriteLine ("Name: " + tempPath + "\\dummyFile3.txt"); outFile.WriteLine ("Func: " + "System.IO.StreamWriter.ctor(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sw)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); try { exc = null; System.Console.SetOut (sw); try { exc = null; now = System.DateTime.Now; System.Console.WriteLine (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile3.txt"); outFile.WriteLine ("Func: " + "System.Console.WriteLine()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.Console.Out.Write ("hello"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile3.txt"); outFile.WriteLine ("Func: " + "System.IO.TextWriter.Write(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } finally { try { sw.Close (); } catch (Exception) { } } } catch (Exception) { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile3.txt"); outFile.WriteLine ("Func: " + "System.IO.StreamWriter.ctor(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sw)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; sr = null; now = System.DateTime.Now; sr = new System.IO.StreamReader (tempPath + "\\dummyFile4.txt"); outFile.WriteLine ("Name: " + tempPath + "\\dummyFile4.txt"); outFile.WriteLine ("Func: " + "System.IO.StreamReader.ctor(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); try { System.Console.SetIn (sr); try { exc = null; now = System.DateTime.Now; System.Console.ReadLine (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile4.txt"); outFile.WriteLine ("Func: " + "System.Console.ReadLine()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.Console.In.ReadLine (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile4.txt"); outFile.WriteLine ("Func: " + "System.IO.TextReader.ReadLine()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception) { } finally { try { sr.Close (); } catch (Exception) { } } } catch (Exception e) { exc = e; outFile.WriteLine ("Name: " + tempPath + "\\dummyFile4.txt"); outFile.WriteLine ("Func: " + "System.IO.StreamReader.ctor(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; sw = null; now = System.DateTime.Now; sw = new System.IO.StreamWriter (tempPath + "\\dummyFile5.txt"); outFile.WriteLine ("Name: " + tempPath + "\\dummyFile.txt"); outFile.WriteLine ("Func: " + "System.IO.StreamWriter.ctor(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sw)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); try { System.Console.SetError (sw); try { exc = null; now = System.DateTime.Now; System.Console.Error.WriteLine (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile5.txt"); outFile.WriteLine ("Func: " + "System.IO.TextWriter.WriteLine(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } finally { try { sw.Close (); } catch (Exception) { } } } catch (Exception e) { exc = e; outFile.WriteLine ("Name: " + tempPath + "\\dummyFile5.txt"); outFile.WriteLine ("Func: " + "System.IO.StreamWriter.ctor(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sw)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception) { } try { try { exc = null; di = null; now = System.DateTime.Now; di = System.IO.Directory.CreateDirectory (tempPath + "\\TestDir1"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.CreateDirectory(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (di)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; di = null; now = System.DateTime.Now; di = System.IO.Directory.GetParent (tempPath + "\\TestDir1"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath); outFile.WriteLine ("Func: " + "System.IO.Directory.GetParent(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (di)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; b = System.IO.Directory.Exists (tempPath + "\\TestDir1"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.Exists(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (b)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.Directory.SetCreationTime (tempPath + "\\TestDir1", new System.DateTime (2003, 01, 01)); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.SetCreationTime(String, DateTime)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; dt = InicDateTime (); now = System.DateTime.Now; dt = System.IO.Directory.GetCreationTime (tempPath + "\\TestDir1"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.GetCreationTime(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (dt)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.Directory.SetLastWriteTime (tempPath + "\\TestDir1", new System.DateTime (2003, 01, 01)); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.SetLastWriteTime(String, DateTime)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; dt = InicDateTime (); now = System.DateTime.Now; dt = System.IO.Directory.GetLastWriteTime (tempPath + "\\TestDir1"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.GetLastWriteTime(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (dt)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.Directory.SetLastAccessTime (tempPath + "\\TestDir1", new System.DateTime (2003, 01, 01)); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.SetLastAccessTime(String, DateTime)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; dt = InicDateTime (); now = System.DateTime.Now; dt = System.IO.Directory.GetLastAccessTime (tempPath + "\\TestDir1"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.GetLastAccessTime(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (dt)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; sL = null; now = System.DateTime.Now; sL = System.IO.Directory.GetFiles (tempPath + "\\TestDir1"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.GetFiles(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sL)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; sL = null; now = System.DateTime.Now; sL = System.IO.Directory.GetDirectories (tempPath + "\\TestDir1"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.GetDirectories(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sL)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.Directory.GetFileSystemEntries (tempPath + "\\TestDir1"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.GetFileSystemEntries(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sL)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.Directory.SetCurrentDirectory (tempPath + "\\TestDir1\\.."); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath); outFile.WriteLine ("Func: " + "System.IO.Directory.SetCurrentDirectory(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.Directory.Move (tempPath + "\\TestDir1", tempPath + "\\TestDir2"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.Move(String, String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); //--- outFile.WriteLine ("Name: " + tempPath + "\\TestDir2"); outFile.WriteLine ("Func: " + "System.IO.Directory.Move(String, String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.Directory.Delete (tempPath + "\\TestDir1"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir1"); outFile.WriteLine ("Func: " + "System.IO.Directory.Delete(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.Directory.Delete (tempPath + "\\TestDir2"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir2"); outFile.WriteLine ("Func: " + "System.IO.Directory.Delete(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception) { } try { di = null; di = new System.IO.DirectoryInfo (tempPath); System.IO.DirectoryInfo di2 = null; try { try { exc = null; di2 = null; now = System.DateTime.Now; di2 = di.CreateSubdirectory (tempPath + "\\TestDir3"); di = di2; } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir3"); outFile.WriteLine ("Func: " + "System.IO.DirectoryInfo.CreateSubdirectory(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (di2)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; fiL = null; now = System.DateTime.Now; fiL = di.GetFiles (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir3"); outFile.WriteLine ("Func: " + "System.IO.DirectoryInfo.GetFiles()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (fiL)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; diL = null; now = System.DateTime.Now; diL = di.GetDirectories (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir3"); outFile.WriteLine ("Func: " + "System.IO.DirectoryInfo.GetDirectories()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (diL)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; fsiL = null; now = System.DateTime.Now; fsiL = di.GetFileSystemInfos (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir3"); outFile.WriteLine ("Func: " + "System.IO.DirectoryInfo.GetFileSystemInfos()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (fsiL)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; di.MoveTo (tempPath + "\\TestDir4"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir3"); outFile.WriteLine ("Func: " + "System.IO.DirectoryInfo.MoveTo(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); //--- outFile.WriteLine ("Name: " + tempPath + "\\TestDir4"); outFile.WriteLine ("Func: " + "System.IO.DirectoryInfo.MoveTo(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } finally { try { exc = null; char[] backSlash = new char[1]; backSlash[0] = '\\'; outFile.WriteLine ("Name: " + di.FullName.TrimEnd (backSlash)); now = System.DateTime.Now; di.Delete (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Func: " + "System.IO.DirectoryInfo.Delete()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } try { di = null; di = new System.IO.DirectoryInfo (tempPath + "\\TestDir5"); try { exc = null; now = System.DateTime.Now; di.Create (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir5"); outFile.WriteLine ("Func: " + "System.IO.DirectoryInfo.Create()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; di.MoveTo (tempPath + "\\TestDir6"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\TestDir5"); outFile.WriteLine ("Func: " + "System.IO.DirectoryInfo.MoveTo(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); //--- outFile.WriteLine ("Name: " + tempPath + "\\TestDir6"); outFile.WriteLine ("Func: " + "System.IO.DirectoryInfo.MoveTo(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception) { } finally { try { exc = null; char[] backSlash = new char[1]; backSlash[0] = '\\'; outFile.WriteLine ("Name: " + di.FullName.TrimEnd (backSlash)); now = System.DateTime.Now; di.Delete (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Func: " + "System.IO.DirectoryInfo.Delete()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } } catch (Exception) { } try { try { exc = null; sr = null; now = System.DateTime.Now; sr = System.IO.File.OpenText (tempPath + "\\dummyFile6.txt"); sr.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile6.txt"); outFile.WriteLine ("Func: " + "System.IO.File.OpenText(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; sw = null; now = System.DateTime.Now; sw = System.IO.File.CreateText (tempPath + "\\dummyFile7.txt"); sw.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile7.txt"); outFile.WriteLine ("Func: " + "System.IO.File.CreateText(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sw)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; sw = null; now = System.DateTime.Now; sw = System.IO.File.AppendText (tempPath + "\\dummyFile8.txt"); sw.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile8.txt"); outFile.WriteLine ("Func: " + "System.IO.File.AppendText(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sw)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; fs = null; now = System.DateTime.Now; fs = System.IO.File.Open (tempPath + "\\dummyFile9.txt", System.IO.FileMode.OpenOrCreate); fs.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile9.txt"); outFile.WriteLine ("Func: " + "System.IO.File.Open(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (fs)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.File.SetCreationTime (tempPath + "\\dummyFile9.txt", new System.DateTime (2003, 01, 01)); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile9.txt"); outFile.WriteLine ("Func: " + "System.IO.File.SetCreationTime(String, DateTime)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; dt = InicDateTime (); now = System.DateTime.Now; dt = System.IO.File.GetCreationTime (tempPath + "\\dummyFile9.txt"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile9.txt"); outFile.WriteLine ("Func: " + "System.IO.File.GetCreationTime(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (dt)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.File.SetLastAccessTime (tempPath + "\\dummyFile9.txt", new System.DateTime (2003, 01, 01)); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile9.txt"); outFile.WriteLine ("Func: " + "System.IO.File.SetLastAccessTime(String, DateTime)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; dt = System.IO.File.GetLastAccessTime (tempPath + "\\dummyFile9.txt"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile9.txt"); outFile.WriteLine ("Func: " + "System.IO.File.GetLastAccessTime(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (dt)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.File.SetLastWriteTime (tempPath + "\\dummyFile9.txt", new System.DateTime (2003, 01, 01)); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile9.txt"); outFile.WriteLine ("Func: " + "System.IO.File.SetLastWriteTime(String, DateTime)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; dt = InicDateTime (); now = System.DateTime.Now; dt = System.IO.File.GetLastWriteTime (tempPath + "\\dummyFile9.txt"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile9.txt"); outFile.WriteLine ("Func: " + "System.IO.File.GetLastWriteTime(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (dt)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; fs = null; now = System.DateTime.Now; fs = System.IO.File.OpenRead (tempPath + "\\dummyFile10.txt"); fs.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile10.txt"); outFile.WriteLine ("Func: " + "System.IO.File.OpenRead(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (fs)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; fs = null; now = System.DateTime.Now; fs = System.IO.File.OpenWrite (tempPath + "\\dummyFile11.txt"); fs.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile11.txt"); outFile.WriteLine ("Func: " + "System.IO.File.OpenWrite(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (fs)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; fs = null; now = System.DateTime.Now; fs = System.IO.File.Create (tempPath + "\\testFile1.txt"); fs.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\testFile1.txt"); outFile.WriteLine ("Func: " + "System.IO.File.Create(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (fs)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; fs = null; now = System.DateTime.Now; System.IO.File.Move (tempPath + "\\testFile1.txt", tempPath + "\\testFile2.txt"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\testFile1.txt"); outFile.WriteLine ("Func: " + "System.IO.File.OpenWrite(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); //--- outFile.WriteLine ("Name: " + tempPath + "\\testFile2.txt"); outFile.WriteLine ("Func: " + "System.IO.File.OpenWrite(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; System.IO.File.Delete (tempPath + "\\testFile2.txt"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\testFile2.txt"); outFile.WriteLine ("Func: " + "System.IO.File.Delete(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; b = System.IO.File.Exists (tempPath + "\\testFile3.txt"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\testFile3.txt"); outFile.WriteLine ("Func: " + "System.IO.File.Exists(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (b)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception) { } try { fi = new System.IO.FileInfo (tempPath + "\\testFile4.txt"); try { exc = null; fs = null; now = System.DateTime.Now; fs = fi.Create (); fs.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\testFile4.txt"); outFile.WriteLine ("Func: " + "System.IO.FileInfo.Create()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (fs)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; sr = null; now = System.DateTime.Now; sr = fi.OpenText (); sr.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\testFile4.txt"); outFile.WriteLine ("Func: " + "System.IO.FileInfo.OpenText()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; sw = null; now = System.DateTime.Now; sw = fi.CreateText (); sw.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\testFile4.txt"); outFile.WriteLine ("Func: " + "System.IO.FileInfo.CreateText()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sw)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; sw = null; now = System.DateTime.Now; sw = fi.AppendText (); sw.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\testFile4.txt"); outFile.WriteLine ("Func: " + "System.IO.FileInfo.AppendText()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (sw)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; fs = null; fi = new System.IO.FileInfo (tempPath + "\\testFile5.txt"); now = System.DateTime.Now; fs = fi.Open (System.IO.FileMode.Open); fs.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\testFile5.txt"); outFile.WriteLine ("Func: " + "System.IO.FileInfo.Create(FileMode)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (fs)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; fs = null; now = System.DateTime.Now; fs = fi.OpenWrite (); fs.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\testFile5.txt"); outFile.WriteLine ("Func: " + "System.IO.FileInfo.OpenWrite()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (fs)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; fi.MoveTo (tempPath + "\\testFile6.txt"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\testFile5.txt"); outFile.WriteLine ("Func: " + "System.IO.FileInfo.MoveTo(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); //--- outFile.WriteLine ("Name: " + tempPath + "\\testFile6.txt"); outFile.WriteLine ("Func: " + "System.IO.FileInfo.MoveTo(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; char[] backSlash = new char[1]; backSlash[0] = '\\'; outFile.WriteLine ("Name: " + fi.FullName.TrimEnd (backSlash)); now = System.DateTime.Now; fi.Delete (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Func: " + "System.IO.FileInfo.Delete()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception) { } try { exc = null; byte[] array = new byte[1]; array[0] = 0; fs = null; now = System.DateTime.Now; fs = System.IO.File.Open (tempPath + "\\dummyFile12.txt", System.IO.FileMode.OpenOrCreate); outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.File.Open(String, FileMode)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (fs)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); try { exc = null; now = System.DateTime.Now; fs.Lock (0, 1); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.Lock(Int64, Int64)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; fs.Unlock (0, 1); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.Unlock(Int64, Int64)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; fs.WriteByte (0); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.WriteByte(Byte)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; fs.Write (array, 0, 1); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.Write(Byte[], Int32, Int32)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; asr = null; now = System.DateTime.Now; asr = fs.BeginWrite (array, 0, 1, null, null); outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (asr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); try { exc = null; now = System.DateTime.Now; fs.EndWrite (asr); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.EndWrite(IAsyncResult)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception e) { exc = e; outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (asr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; fs.SetLength (2); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.SetLength(Int64)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; fs.Flush (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.Flush()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; i = 0; now = System.DateTime.Now; i = fs.ReadByte (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.ReadByte()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (i)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; i = 0; now = System.DateTime.Now; i = fs.Read (array, 0, 1); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.Read(Byte[], Int32, Int32)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (i)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; l = 0; now = System.DateTime.Now; l = fs.Seek (0, System.IO.SeekOrigin.Begin); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.Seek(Int64, SeekOrigin)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (l)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; asr = null; now = System.DateTime.Now; asr = fs.BeginRead (array, 0, 1, null, null); outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (asr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); try { exc = null; i = 0; now = System.DateTime.Now; i = fs.EndRead (asr); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.EndRead(IAsyncResult)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (i)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception e) { exc = e; outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (asr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; fs.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.FileStream.Close(IAsyncResult)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception e) { exc = e; outFile.WriteLine ("Name: " + tempPath + "\\dummyFile12.txt"); outFile.WriteLine ("Func: " + "System.IO.File.Open(String, FileMode)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (fs)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { System.IO.TextWriter tw = new System.IO.StreamWriter (tempPath + "\\dummyFile13.txt"); try { exc = null; now = System.DateTime.Now; tw.WriteLine ("hello"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile13.txt"); outFile.WriteLine ("Func: " + "System.IO.TextWriter.WriteLine(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; tw.Write ("12345678790"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile13.txt"); outFile.WriteLine ("Func: " + "System.IO.TextWriter.Write(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; tw.Flush (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile13.txt"); outFile.WriteLine ("Func: " + "System.IO.TextWriter.Flush()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; tw.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile13.txt"); outFile.WriteLine ("Func: " + "System.IO.TextWriter.Close()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception) { } try { char[] array = new char[1]; array[0] = 'a'; System.IO.TextReader tr = new System.IO.StreamReader (tempPath + "\\dummyFile13.txt"); try { exc = null; s = null; now = System.DateTime.Now; s = tr.ReadLine (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile13.txt"); outFile.WriteLine ("Func: " + "System.IO.TextReader.ReadLine()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (s)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; i = 0; now = System.DateTime.Now; i = tr.ReadBlock (array, 0, 1); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile13.txt"); outFile.WriteLine ("Func: " + "System.IO.TextReader.ReadBlock(Char[], Int32, Int32)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (i)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; i = 0; now = System.DateTime.Now; i = tr.Read (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile13.txt"); outFile.WriteLine ("Func: " + "System.IO.TextReader.Read()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (i)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; i = 0; now = System.DateTime.Now; i = tr.Read (array, 0, 1); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile13.txt"); outFile.WriteLine ("Func: " + "System.IO.TextReader.Read(Char[], Int32, Int32)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (i)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; s = null; now = System.DateTime.Now; s = tr.ReadToEnd (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile13.txt"); outFile.WriteLine ("Func: " + "System.IO.TextReader.ReadToEnd()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (s)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; tr.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile13.txt"); outFile.WriteLine ("Func: " + "System.IO.TextReader.Close()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception) { } try { sw = new System.IO.StreamWriter (tempPath + "\\dummyFile14.txt"); try { exc = null; now = System.DateTime.Now; sw.Write (0); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile14.txt"); outFile.WriteLine ("Func: " + "System.IO.StreamWriter.Write(Int32)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; sw.Flush (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile14.txt"); outFile.WriteLine ("Func: " + "System.IO.StreamWriter.Flush()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; sw.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile14.txt"); outFile.WriteLine ("Func: " + "System.IO.StreamWriter.Close()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception) { } /* try { exc = null; System.IO.IsolatedStorage.IsolatedStorageScope iss = System.IO.IsolatedStorage.IsolatedStorageScope.User | System.IO.IsolatedStorage.IsolatedStorageScope.Assembly | System.IO.IsolatedStorage.IsolatedStorageScope.Domain; isf = null; now = System.DateTime.Now; isf = System.IO.IsolatedStorage.IsolatedStorageFile.GetStore (iss, null, null); try { exc = null; now = System.DateTime.Now; isf.Dispose (); } catch (Exception e) { exc = e; } // System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForDomain (); // System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForAssembly (); // System.IO.IsolatedStorage.IsolatedStorageFile.GetStore (System.IO.IsolatedStorage.IsolatedStorageScope.User | System.IO.IsolatedStorage.IsolatedStorageScope.Assembly | System.IO.IsolatedStorage.IsolatedStorageScope.Domain, null, null); try { exc = null; now = System.DateTime.Now; isf.CreateDirectory ("dummyDir"); } catch (Exception e) { exc = e; } try { exc = null; now = System.DateTime.Now; isf.GetDirectoryNames ("*"); } catch (Exception e) { exc = e; } try { exc = null; now = System.DateTime.Now; isf.DeleteFile ("dummyFile"); } catch (Exception e) { exc = e; } try { exc = null; now = System.DateTime.Now; isf.DeleteDirectory ("dummyDir"); } catch (Exception e) { exc = e; } try { exc = null; now = System.DateTime.Now; isf.GetFileNames ("*"); } catch (Exception e) { exc = e; } try { exc = null; now = System.DateTime.Now; isf.Close (); } catch (Exception e) { exc = e; } try { exc = null; now = System.DateTime.Now; System.IO.IsolatedStorage.IsolatedStorageFile.Remove (iss); } catch (Exception e) { exc = e; } } catch (Exception e) { exc = e; } */ try { exc = null; byte[] array = new byte[1]; array[0] = 0; isfs = null; now = System.DateTime.Now; isfs = new System.IO.IsolatedStorage.IsolatedStorageFileStream (tempPath + "\\dummyFile15.txt", System.IO.FileMode.OpenOrCreate); outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.ctor(String, FileMode)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (isfs)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); try { exc = null; now = System.DateTime.Now; isfs.Lock (0, 1); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.Lock(Int64, Int64)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; isfs.Unlock (0, 1); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.Unlock(Int64, Int64)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; isfs.WriteByte (0); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.WriteByte(Byte)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; isfs.Write (array, 0, 1); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.Write(Byte[], Int32, Int32)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; asr = null; now = System.DateTime.Now; asr = isfs.BeginWrite (array, 0, 1, null, null); outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.BeginWrite(IAsyncResult, Int32, Int32, AsyncCallback, Object)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (asr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); try { exc = null; now = System.DateTime.Now; isfs.EndWrite (asr); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.EndWrite(IAsyncResult)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception e) { exc = e; outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.BeginWrite(IAsyncResult, Int32, Int32, AsyncCallback, Object)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (asr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; isfs.SetLength (2); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.SetLength(Int64)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; isfs.Flush (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.Flush()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; l = 0; now = System.DateTime.Now; l = isfs.Seek (0, System.IO.SeekOrigin.Begin); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.Seek(Int64, SeekOrigin)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (l)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; i = 0; now = System.DateTime.Now; i = isfs.ReadByte (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.ReadByte()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (i)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; i = 0; now = System.DateTime.Now; i = isfs.Read (array, 0, 1); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.Read(Byte[], Int32, Int32)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (i)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; asr = null; now = System.DateTime.Now; asr = isfs.BeginRead (array, 0, 1, null, null); outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (asr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); try { exc = null; i = 0; now = System.DateTime.Now; i = isfs.EndRead (asr); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.EndRead(IAsyncResult)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (i)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception e) { exc = e; outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (asr)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; now = System.DateTime.Now; isfs.Close (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.Close()"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception e) { exc = e; outFile.WriteLine ("Name: " + tempPath + "\\dummyFile15.txt"); outFile.WriteLine ("Func: " + "System.IO.IsolatedStorage.IsolatedStorageFileStream.ctor(String, FileMode)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (isfs)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { System.Net.WebClient wc = new System.Net.WebClient (); try { exc = null; now = System.DateTime.Now; wc.DownloadFile ("http://www.google.com", tempPath + "\\dummyFile16.txt"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile16.txt"); outFile.WriteLine ("Func: " + "System.Net.WebClient.DownloadFile(String, String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + ""); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; bL = null; now = System.DateTime.Now; bL = wc.UploadFile ("http://www.google.com", tempPath + "\\dummyFile16.txt"); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile16.txt"); outFile.WriteLine ("Func: " + "System.Net.WebClient.UploadFile(String, String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + toString (bL)); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception) { } try { string processString = null; try { exc = null; p = null; now = System.DateTime.Now; p = System.Diagnostics.Process.Start (tempPath + "\\dummyFile16.txt"); processString = toString (p); p.Kill (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile16.txt"); outFile.WriteLine ("Func: " + "System.Diagnostics.Process.Start(String)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + processString); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } try { exc = null; System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo (tempPath + "\\dummyFile16.txt"); p = null; now = System.DateTime.Now; p = System.Diagnostics.Process.Start (psi); processString = toString (p); p.Kill (); } catch (Exception e) { exc = e; } finally { outFile.WriteLine ("Name: " + tempPath + "\\dummyFile16.txt"); outFile.WriteLine ("Func: " + "System.Diagnostics.Process.Start(ProcessStartInfo)"); outFile.WriteLine ("Proc: " + System.Diagnostics.Process.GetCurrentProcess ().Id); outFile.WriteLine ("Time: " + GetTime (now)); outFile.WriteLine ("Retv: " + processString); outFile.WriteLine ("Errc: " + ""); outFile.WriteLine ("Exce: " + GetException (exc)); } } catch (Exception) { } /* try { now = System.DateTime.Now; System.Configuration.AppSettingsReader asr = new System.Configuration.AppSettingsReader (); asr.GetValue ("key", System.Type.GetType ("System.Object", false)); } catch (Exception e) { } */ /* try { System.Xml.XmlDocument.Save (); System.Xml.XmlDocument.LoadXml (); System.Xml.XmlDocument.WriteContentTo (); System.Xml.XmlDocument.WriteTo (); System.Xml.XmlDocument xd = new System.Xml.XmlDocument (System.Xml.XmlNameTable); System.Xml.XmlDocumentFragment.WriteContentTo (); System.Xml.XmlDocumentFragment.WriteTo (); System.Xml.XmlDocumentType.WriteContentTo (); System.Xml.XmlDocumentType.WriteTo (); } catch (Exception e) { } try { System.Xml.XmlWriter.WriteNode (); System.Xml.XmlWriter.WriteAttributes (); System.Xml.XmlWriter.WriteStartElement (); System.Xml.XmlWriter.WriteAttributeString (); System.Xml.XmlWriter.WriteStartAttribute (); System.Xml.XmlWriter.WriteElementString (); } catch (Exception e) { } try { System.Xml.XmlTextWriter xtw = System.Xml.XmlTextWriter (tempPath + "\\dummyFile.txt", System.Text.Encoding.ASCII); xtw.WriteNode (); xtw.WriteAttributes (); xtw.WriteQualifiedName ("localName", ); xtw.WriteName (); xtw.WriteNmToken (); xtw.WriteBinHex (); xtw.WriteBase64 (); xtw.WriteRaw (); xtw.WriteChars (); xtw.WriteSurrogateCharEntity (); xtw.WriteString (); xtw.WriteWhitespace (); xtw.WriteCharEntity (); xtw.WriteEntityRef (); xtw.WriteProcessingInstruction (); xtw.WriteComment (); xtw.WriteCData (); xtw.WriteEndAttribute (); xtw.WriteStartAttribute (); xtw.WriteFullEndElement (); xtw.WriteEndElement (); xtw.WriteStartElement (); xtw.WriteDocType (); xtw.WriteEndDocument (); xtw.WriteStartDocument (); xtw.WriteAttributeString (); xtw.WriteElementString (); xtw.Flush (); xtw.Close (); } catch (Exception e) { } try { System.Xml.XmlReader.IsStartElement (); System.Xml.XmlReader.ReadEndElement (); System.Xml.XmlReader.ReadElementString (); System.Xml.XmlReader.ReadStartElement (); System.Xml.XmlReader.MoveToContent (); System.Xml.XmlReader.Skip (); System.Xml.XmlReader.IsName (); System.Xml.XmlReader.IsNameToken (); } catch (Exception e) { } try { System.Xml.XmlTextReader.ReadAttributeValue (); System.Xml.XmlTextReader.ResolveEntity (); System.Xml.XmlTextReader.LookupNamespace (); System.Xml.XmlTextReader.ReadOuterXml (); System.Xml.XmlTextReader.ReadInnerXml (); System.Xml.XmlTextReader.IsStartElement (); System.Xml.XmlTextReader.ReadEndElement (); System.Xml.XmlTextReader.ReadElementString (); System.Xml.XmlTextReader.ReadStartElement (); System.Xml.XmlTextReader.MoveToContent (); System.Xml.XmlTextReader.ReadString (); System.Xml.XmlTextReader.Skip (); System.Xml.XmlTextReader.Close (); System.Xml.XmlTextReader.Read (); System.Xml.XmlTextReader.MoveToElement (); System.Xml.XmlTextReader.MoveToNextAttribute (); System.Xml.XmlTextReader.MoveToFirstAttribute (); System.Xml.XmlTextReader.MoveToAttribute (); System.Xml.XmlTextReader.GetAttribute (); System.Xml.XmlTextReader.GetRemainder (); System.Xml.XmlTextReader.ReadChars (); System.Xml.XmlTextReader.ReadBase64 (); System.Xml.XmlTextReader.ReadBinHex (); System.Xml.XmlTextReader.ctor (); } catch (Exception e) { } try { System.Xml.XmlEntityReference.WriteContentTo (); System.Xml.XmlEntityReference.WriteTo (); System.Xml.XmlImplementation.CreateDocument (); System.Xml.XmlImplementation.ctor (); System.Xml.XmlText.WriteContentTo (); System.Xml.XmlText.WriteTo (); } catch (Exception e) { } */ outFile.Flush (); outFile.Close (); try { sL = System.IO.Directory.GetFiles (tempPath, "tempFile*.txt"); foreach (string str in sL) { try { System.IO.File.Delete (str); } catch (Exception) { } } sL = System.IO.Directory.GetFiles (tempPath, "dummyFile*.txt"); foreach (string str in sL) { try { System.IO.File.Delete (str); } catch (Exception) { } } sL = System.IO.Directory.GetDirectories (tempPath, "TempDir*"); foreach (string str in sL) { try { System.IO.Directory.Delete (str); } catch (Exception) { } } } catch (Exception) { } }