Example #1
0
        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!");
        }
Example #2
0
        internal System.IO.FileInfo FullDocumentPath(string targetLocation, string partialUrl, string fileName)
        {
            var local = new System.IO.DirectoryInfo(targetLocation);

            local = local.CreateSubdirectory("FileStream");
            foreach (var partial in partialUrl.Split(new string[] { "/" }, StringSplitOptions.RemoveEmptyEntries))
            {
                local = local.CreateSubdirectory(partial, local.GetAccessControl());
            }

            var localfile = new System.IO.FileInfo(string.Format("{0}\\{1}", local.FullName, fileName));

            return(localfile);
        }
Example #3
0
        private void duplicateButton_Click(object sender, EventArgs e)
        {
            //string temp = folder.FullName + "\\" + onlyName + ".con";



            if (System.IO.Directory.Exists(parent) == false)
            {
                //System.IO.Directory.CreateDirectory(pInfo.FullName);
                pInfo.CreateSubdirectory(outputBox.Text);
                Console.WriteLine("creating a directory");
            }

            //if (System.IO.File.Exists(temp))
            //{
            //	//duplicator.duplikasi(temp, parent + "\\" + outputBox.Text + ".con", onlyName, outputBox.Text);
            //	duplicator.duplikasi(onlyName, outputBox.Text);
            //}
            //temp = folder.FullName + "\\" + onlyName + ".tweak";
            //if (System.IO.File.Exists(temp))
            //{
            //	//duplicator.duplikasi(temp, parent + "\\" + outputBox.Text + ".tweak", onlyName, outputBox.Text);
            //	duplicator.duplikasi(onlyName, outputBox.Text);
            //}

            copasCon.duplikasi(onlyName, outputBox.Text);
            copasTweak.duplikasi(onlyName, outputBox.Text);

            Process.Start("explorer.exe", parent);

            print("selesai mengduplikasi");
        }
Example #4
0
        public bool Start()
        {
            if (System.IO.Directory.Exists(_config.MailFolderPath) == false)
            {
                _logger.LogError("emails folder not exist.");
                return(false);
            }
            _contentDirectoryInfo   = new System.IO.DirectoryInfo(_config.MailFolderPath);
            _processedDirectoryInfo = _contentDirectoryInfo.CreateSubdirectory(_config.ProcessedFolderName);

            if (LoadTemplate() == false)
            {
                _logger.LogError("no template folder.");
                return(false);
            }

            if (_emailTemplateDictionary.Count == 0)
            {
                _logger.LogError("no email template.");
                return(false);
            }

            foreach (var item in _emailTemplateDictionary)
            {
                _logger.LogInformation("*****Template Name: " + item.Key);
                _logger.LogInformation("SubjectTemplate");
                _logger.LogInformation(item.Value.SubjectTemplate);
                _logger.LogInformation("BodyTemplate");
                _logger.LogInformation(item.Value.BodyTemplate);
            }

            _timer = new System.Threading.Timer(Callback, null, 0, _config.Interval);

            return(true);
        }
Example #5
0
        private void DirectoryCheck(String userName)
        {
            var receiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~/IMG/"));

            if (!receiptImageDir.Exists)
            {
                var createReceiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~"));
                createReceiptImageDir.CreateSubdirectory("IMG/");
            }


            receiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~/IMG/receiptImage/"));

            if (!receiptImageDir.Exists)
            {
                var createReceiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~/IMG"));
                createReceiptImageDir.CreateSubdirectory("receiptImage/");
            }

            receiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~/IMG/receiptImage/"
                                                                         + userName + "/"));

            if (!receiptImageDir.Exists)
            {
                var createReceiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~/IMG/receiptImage/"));
                createReceiptImageDir.CreateSubdirectory(userName + "/");
            }
        }
        public override void ExecuteCmdlet()
        {
            var PathIO = new System.IO.DirectoryInfo(Path);

            var SelectedWeb = this.ClientContext.Web;

            if (string.IsNullOrEmpty(Path) || !PathIO.Exists)
            {
                // build the directory structure in the users AppData for file download/upload
                string result    = System.IO.Path.GetTempPath();
                var    resultdir = new System.IO.DirectoryInfo(result);
                // create the path/directory and inherit permissions
                PathIO = resultdir.CreateSubdirectory("iaclogs", resultdir.GetAccessControl());
            }

            // Pull listitem from list
            var list = List.GetList(SelectedWeb);

            if (list != null)
            {
                // Commented out to demonstrate extension handling URL property initialization
                // ClientContext.Load(SelectedWeb, wctx => wctx.Url);

                var item = list.GetItemById(ItemId);
                ClientContext.Load(item,
                                   ictx => ictx.Id,
                                   ictx => ictx["Title"],
                                   ictx => ictx["FileLeafRef"]);
                ClientContext.ExecuteQueryRetry();


                var filepath = item.DownloadFile(ClientContext, PathIO.FullName);
                LogVerbose("Successfully downloaded {0}", filepath);
            }
        }
Example #7
0
        private void DirectoryCheck(String userName)
        {
            var receiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~/IMG/"));

            if (!receiptImageDir.Exists)
            {
                var createReceiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~"));
                createReceiptImageDir.CreateSubdirectory("IMG/");
            }

            receiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~/IMG/receiptImage/"));

            if (!receiptImageDir.Exists)
            {
                var createReceiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~/IMG"));
                createReceiptImageDir.CreateSubdirectory("receiptImage/");
            }

            receiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~/IMG/receiptImage/"
                + userName + "/"));

            if (!receiptImageDir.Exists)
            {
                var createReceiptImageDir = new System.IO.DirectoryInfo(Server.MapPath("~/IMG/receiptImage/"));
                createReceiptImageDir.CreateSubdirectory(userName + "/");
            }
        }
Example #8
0
        private void btn_Add_Performer_Click(object sender, EventArgs e)
        {
            string Dest_path = DestPath;

            if (NameAuthorTextBox_AddPerformer.Text == "" || Country_TextBox_AddPerformer.Text == "")
            {
                if (AuthorComboBox.Items.Contains(NameAuthorTextBox_AddPerformer.Text))
                {
                    MessageBox.Show("Такой автор уже есть!\nВведите другого автора или выйдите из этой формы", "Уже существует!");
                    return;
                }
                else
                {
                    MessageBox.Show("Проверьте вводимые данные!\nВозможно одно из полей осталось незаполненным", "Не все данные заполнены!");
                    return;
                }
            }
            MyQuery = $"EXEC [AddPerformer] '{NameAuthorTextBox_AddPerformer.Text}','{Country_TextBox_AddPerformer.Text}'";
            StoredProcedureEXEC.ExecuteProcedure(MyQuery, "Автор успешно добавлен!", null);

            System.IO.DirectoryInfo dirInfo = new System.IO.DirectoryInfo(Dest_path + @"\");
            if (!dirInfo.Exists)
            {
                dirInfo.Create();
            }

            dirInfo.CreateSubdirectory(NameAuthorTextBox_AddPerformer.Text);

            btn_Cancel_AddPerformer_Click(sender, e);
        }
Example #9
0
 public static void CopyFolder(System.IO.DirectoryInfo source, System.IO.DirectoryInfo target)
 {
     foreach (System.IO.DirectoryInfo dir in source.GetDirectories())
     {
         CopyFolder(dir, target.CreateSubdirectory(dir.Name));
     }
     foreach (System.IO.FileInfo file in source.GetFiles())
     {
         file.CopyTo(System.IO.Path.Combine(target.FullName, file.Name));
     }
 }
Example #10
0
        /// <summary>
        /// 파일 압축 해제 - ICSharpCode.SharpZipLib.Zip
        /// </summary>
        /// <param name="sourceFilePath">소스 파일 경로</param>
        /// <param name="targetDirectoryPath">타겟 디렉토리 경로</param>
        public static void DecompressFileToFile(string sourceFilePath, string targetDirectoryPath)
        {
            System.IO.DirectoryInfo targetDirectoryInfo = new System.IO.DirectoryInfo(targetDirectoryPath);

            if (!targetDirectoryInfo.Exists)
            {
                targetDirectoryInfo.Create();
            }

            System.IO.FileStream sourceFileStream = new System.IO.FileStream(sourceFilePath, System.IO.FileMode.Open);
            ZipInputStream       zipInputStream   = new ZipInputStream(sourceFileStream);

            byte[] bufferByteArray = new byte[2048];

            while (true)
            {
                System.IO.FileInfo fi = new System.IO.FileInfo(sourceFilePath);

                ZipEntry zipEntry = zipInputStream.GetNextEntry();

                if (zipEntry == null)
                {
                    break;
                }

                if (zipEntry.Name.LastIndexOf('\\') > 0)
                {
                    string subdirectory = fi.Name;

                    if (!System.IO.Directory.Exists(System.IO.Path.Combine(targetDirectoryInfo.FullName, subdirectory)))
                    {
                        targetDirectoryInfo.CreateSubdirectory(subdirectory);
                    }
                }

                System.IO.FileInfo targetFileInfo = new System.IO.FileInfo(System.IO.Path.Combine(targetDirectoryInfo.FullName, fi.Name));

                using (System.IO.FileStream targetFileStream = targetFileInfo.Create())
                {
                    while (true)
                    {
                        int readCount = zipInputStream.Read(bufferByteArray, 0, bufferByteArray.Length);

                        if (readCount == 0)
                        {
                            break;
                        }

                        targetFileStream.Write(bufferByteArray, 0, readCount);
                    }
                }
            }
            zipInputStream.Close();
        }
Example #11
0
 private static void CopyFilesRecursively(System.IO.DirectoryInfo source, System.IO.DirectoryInfo target)
 {
     foreach (var dir in source.GetDirectories())
     {
         CopyFilesRecursively(dir, target.CreateSubdirectory(dir.Name));
     }
     foreach (var file in source.GetFiles())
     {
         file.CopyTo(System.IO.Path.Combine(target.FullName, file.Name));
     }
 }
Example #12
0
        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);
            }
        }
Example #13
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.CheckLicence();
            try
            {
                if (Properties.Settings.Default.CataloguePath.Trim().Length > 0)
                {
                    this.CataloguesPath             = Properties.Settings.Default.CataloguePath;
                    this.toolStripStatusLabel1.Text = "OSE Path: " + this.CataloguesPath;
                }
                else
                {
                    System.IO.DirectoryInfo di    = new System.IO.DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));
                    System.IO.DirectoryInfo osedi = di.CreateSubdirectory("PSTSearchEngine").CreateSubdirectory("OSECatalogue");
                    Properties.Settings.Default.CataloguePath = osedi.FullName;
                    Properties.Settings.Default.Save();
                    this.CataloguesPath             = Properties.Settings.Default.CataloguePath;
                    this.toolStripStatusLabel1.Text = "OSE Path: " + this.CataloguesPath;

                    /*
                     * DialogResult dr = MessageBox.Show("Do You Want To Select Catalogue Folder?", "Catalogue Folder Alert", MessageBoxButtons.YesNoCancel);
                     * if (dr == DialogResult.Yes)
                     * {
                     *  FolderBrowserDialog fbd = new FolderBrowserDialog();
                     *  fbd.Description = "Select Catalogue Folder";
                     *  if (fbd.ShowDialog() == DialogResult.OK)
                     *  {
                     *
                     *      Properties.Settings.Default.CataloguePath = fbd.SelectedPath;
                     *      Properties.Settings.Default.Save();
                     *      this.CataloguesPath = Properties.Settings.Default.CataloguePath;
                     *
                     *  }
                     *  else
                     *  {
                     *      this.Close();
                     *      return;
                     *  }
                     * }
                     * else
                     * {
                     *  this.Close();
                     *  return;
                     * }*/
                }
                this.PSTPath = Properties.Settings.Default.PSTPath;
            }
            catch
            {
            }
        }
Example #14
0
        public static void CopyFilesRecursively(System.IO.DirectoryInfo source, System.IO.DirectoryInfo target)
        {
            foreach (System.IO.DirectoryInfo dir in source.GetDirectories())
            {
                CopyFilesRecursively(dir, target.CreateSubdirectory(dir.Name));
            }

            foreach (System.IO.FileInfo file in source.GetFiles())
            {
                string p = System.IO.Path.Combine(target.FullName, file.Name);
                Tools.Log("Copy '" + file.FullName + "' to '" + p + "'");
                System.IO.File.Copy(file.FullName, p, true);
            }
        }
Example #15
0
        public void Print(List <FilmBox> filmBoxList, Boolean save = false, Boolean preview = false)
        {
            _preview    = preview;
            FilmBoxList = filmBoxList;
            try
            {
                Status = PrintJobStatus.Pending;

                OnStatusUpdate("Preparing films for printing");

                var printJobDir = new System.IO.DirectoryInfo(FullPrintJobFolder);
                if (!printJobDir.Exists)
                {
                    printJobDir.Create();
                }

                if (save)
                {
                    int filmsCount = FilmBoxFolderList.Count;
                    for (int i = 0; i < filmBoxList.Count; i++)
                    {
                        var filmBox    = filmBoxList[i];
                        var filmBoxDir = printJobDir.CreateSubdirectory(string.Format("F{0:000000}", i + 1 + filmsCount));

                        var file = new DicomFile(filmBox.FilmSession);
                        file.Save(string.Format(@"{0}\FilmSession.dcm", filmBoxDir.FullName));

                        FilmBoxFolderList.Add(filmBoxDir.Name);
                        filmBox.Save(filmBoxDir.FullName);
                    }
                }

                var thread = new Thread(DoPrint)
                {
                    Name         = string.Format("PrintJob {0}", SOPInstanceUID.UID),
                    IsBackground = true
                };
                thread.Start();
            }
            catch (Exception ex)
            {
                Error  = ex;
                Status = PrintJobStatus.Failure;
                OnStatusUpdate("Print failed");
                DeletePrintFolder();
            }
        }
Example #16
0
        /// <summary>
        /// Creates the job.
        /// </summary>
        /// <param name="seq">The seq.</param>
        /// <param name="wgt">The WGT.</param>
        /// <param name="name">The name.</param>
        /// <param name="confFile">The conf file.</param>
        public static void CreateJob(
            string family, //Resources.CompositeResource family,
            Resources.SeqFileResource seq,
            Resources.WgtFileResource wgt,
            string name,
            string confFile)
        {
            /// create a new folder for the job
            System.IO.DirectoryInfo jobsFolder =
                new System.IO.DirectoryInfo(Program.CurrentOptions.JobFolder);

            System.IO.DirectoryInfo jobFolder =
                jobsFolder.CreateSubdirectory(family.Replace('.', '\\'));

            System.IO.DirectoryInfo jobDataFolder =
                jobFolder.CreateSubdirectory ("data");

            /// now copy the conf, seq, and wgt files to the directory
            System.IO.File.Copy (
                seq.Filename,
                System.IO.Path.Combine (jobDataFolder.FullName, "sequence.fasta")
                );

            System.IO.File.Copy(
                wgt.Filename,
                System.IO.Path.Combine(jobDataFolder.FullName, "sequence.wgt")
                );

            System.IO.File.Copy(
                confFile,
                System.IO.Path.Combine(jobDataFolder.FullName, "seed.conf")
                );

            System.IO.File.Copy (
                System.IO.Path.Combine (Program.CurrentOptions.DataFolder, "RunMe.bat"),
                System.IO.Path.Combine(jobFolder.FullName, "RunMe.bat")
                );

            System.Environment.CurrentDirectory = jobFolder.FullName;
            System.Diagnostics.Process process =
                System.Diagnostics.Process.Start(System.IO.Path.Combine(jobFolder.FullName, "RunMe.bat"));

            process.WaitForExit();
            int exitCode = process.ExitCode;
        }
Example #17
0
        /// <summary>
        /// Creates the job.
        /// </summary>
        /// <param name="seq">The seq.</param>
        /// <param name="wgt">The WGT.</param>
        /// <param name="name">The name.</param>
        /// <param name="confFile">The conf file.</param>
        public static void CreateJob(
            string family, //Resources.CompositeResource family,
            Resources.SeqFileResource seq,
            Resources.WgtFileResource wgt,
            string name,
            string confFile)
        {
            /// create a new folder for the job
            System.IO.DirectoryInfo jobsFolder =
                new System.IO.DirectoryInfo(Program.CurrentOptions.JobFolder);

            System.IO.DirectoryInfo jobFolder =
                jobsFolder.CreateSubdirectory(family.Replace('.', '\\'));

            System.IO.DirectoryInfo jobDataFolder =
                jobFolder.CreateSubdirectory("data");

            /// now copy the conf, seq, and wgt files to the directory
            System.IO.File.Copy(
                seq.Filename,
                System.IO.Path.Combine(jobDataFolder.FullName, "sequence.fasta")
                );

            System.IO.File.Copy(
                wgt.Filename,
                System.IO.Path.Combine(jobDataFolder.FullName, "sequence.wgt")
                );

            System.IO.File.Copy(
                confFile,
                System.IO.Path.Combine(jobDataFolder.FullName, "seed.conf")
                );

            System.IO.File.Copy(
                System.IO.Path.Combine(Program.CurrentOptions.DataFolder, "RunMe.bat"),
                System.IO.Path.Combine(jobFolder.FullName, "RunMe.bat")
                );

            System.Environment.CurrentDirectory = jobFolder.FullName;
            System.Diagnostics.Process process =
                System.Diagnostics.Process.Start(System.IO.Path.Combine(jobFolder.FullName, "RunMe.bat"));

            process.WaitForExit();
            int exitCode = process.ExitCode;
        }
Example #18
0
        static StackObject *CreateSubdirectory_5(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, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @path = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            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);

            var result_of_this_method = instance_of_this_method.CreateSubdirectory(@path);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
        public void AlphaFS_Directory_CreateJunction_DirectoryContainsFile_ThrowsDirectoryNotEmptyException_Local_Success()
        {
            using (var tempRoot = new TemporaryDirectory())
            {
                var target = tempRoot.Directory.CreateSubdirectory("JunctionTarget");

                var toDelete = tempRoot.Directory.CreateSubdirectory("ToDelete");

                var junction = System.IO.Path.Combine(toDelete.FullName, "JunctionPoint");

                var dirInfo = new System.IO.DirectoryInfo(junction);
                dirInfo.Create();

                dirInfo.CreateSubdirectory("Extra Folder");

                UnitTestAssert.ThrowsException <Alphaleonis.Win32.Filesystem.DirectoryNotEmptyException>(() => Alphaleonis.Win32.Filesystem.Directory.CreateJunction(junction, target.FullName));
            }
        }
Example #20
0
        } // End Sub CopyFiles

        // Permits error handling
        public static void CopyAll(System.IO.DirectoryInfo source, System.IO.DirectoryInfo target)
        {
            System.IO.Directory.CreateDirectory(target.FullName);

            // Copy each file into the new directory.
            foreach (System.IO.FileInfo fi in source.GetFiles())
            {
                System.Console.WriteLine(@"Copying {0}\{1}", target.FullName, fi.Name);
                fi.CopyTo(System.IO.Path.Combine(target.FullName, fi.Name), true);
            }

            // Copy each subdirectory using recursion.
            foreach (System.IO.DirectoryInfo diSourceSubDir in source.GetDirectories())
            {
                System.IO.DirectoryInfo nextTargetSubDir =
                    target.CreateSubdirectory(diSourceSubDir.Name);
                CopyAll(diSourceSubDir, nextTargetSubDir);
            }
        } // End Sub CopyAll
 private static void BuildDirectoryStructure(System.IO.DirectoryInfo dirSourceRoot, System.IO.DirectoryInfo dirTargetRoot, string[] skipDirectories, string[] emptyDirectories)
 {
     System.IO.DirectoryInfo[] dirs;
     //string dirName;
     System.IO.DirectoryInfo dirNew;
     string[] childEmptyArray;
     dirs = dirSourceRoot.GetDirectories();
     foreach (System.IO.DirectoryInfo dir in dirs)
     {
         if (Array.IndexOf(skipDirectories, dir.Name) < 0)
         {
             dirNew = dirTargetRoot.CreateSubdirectory(dir.Name);
             dirNew.Create();
             if (!(emptyDirectories[0] == "*" | Array.IndexOf(emptyDirectories, dir.Name) >= 0))
             {
                 //Copy the files - there has to be a better way!
                 System.IO.FileInfo[] files = dir.GetFiles();
                 foreach (System.IO.FileInfo file in files)
                 {
                     if (file.Extension.ToLower() == ".vbproj" | file.Extension.ToLower() == ".csproj")
                     {
                         // Don't copy file now because you can't update project GUID
                     }
                     else
                     {
                         file.CopyTo(dirNew.FullName + "\\" + file.Name);
                     }
                 }
                 childEmptyArray = emptyDirectories;
             }
             else
             {
                 childEmptyArray = new string[] { "*" };
             }
             BuildDirectoryStructure(dir, dirNew, skipDirectories, childEmptyArray);
         }
     }
 }
Example #22
0
        static void Main(string[] args)
        {
            //Sample code for logging....
            var aiLogProperties = new Dictionary <string, string> {
                { "Search Topic", "Kicked out from home" }, { "Intent Result", "Eviction" }
            };
            //pass null for key to pick it up from app.config...or use keyvalut (preferred) to get instrumentation key.

            var aiLog = LoggerFactory.GetLogger(AppEnum.LoggerType.AppInsight, null);

            aiLog.TrackEvent("TopicSearch", aiLogProperties);
            aiLog.FlushInsights();
            try
            {
                Console.WriteLine("logging exception...");
                System.IO.DirectoryInfo dr = new System.IO.DirectoryInfo("j:\\test\\a.txt");
                dr.CreateSubdirectory("f:\\test\\a");
            }
            catch (Exception ex)
            {
                aiLog.TrackException(ex, "100", AppEnum.EventDictionary.MessageFailedValidation);
                aiLog.FlushInsights();
            }
        }
        public void AlphaFS_Directory_CreateJunction_CatchDirectoryNotEmptyException_Local_Success()
        {
            UnitTestConstants.PrintUnitTestHeader(false);

            var tempPath = System.IO.Path.GetTempPath();

            using (var rootDir = new TemporaryDirectory(tempPath, MethodBase.GetCurrentMethod().Name))
            {
                var target   = rootDir.Directory.CreateSubdirectory("JunctionTarget");
                var toDelete = rootDir.Directory.CreateSubdirectory("ToDelete");
                var junction = System.IO.Path.Combine(toDelete.FullName, "JunctionPoint");


                var dirInfo = new System.IO.DirectoryInfo(junction);
                dirInfo.Create();
                // Create an extra folder to trigger the DirectoryNotEmptyException.
                dirInfo.CreateSubdirectory("Extra Folder");


                var gotException = false;

                try
                {
                    Alphaleonis.Win32.Filesystem.Directory.CreateJunction(junction, target.FullName);
                }
                catch (Exception ex)
                {
                    var exName = ex.GetType().Name;
                    gotException = exName.Equals("DirectoryNotEmptyException", StringComparison.OrdinalIgnoreCase);
                    Console.WriteLine("\n\tCaught {0} Exception: [{1}] {2}", gotException ? "EXPECTED" : "UNEXPECTED", exName, ex.Message);
                }


                Assert.IsTrue(gotException, "The exception is not caught, but is expected to.");
            }
        }
Example #24
0
 public virtual DirectoryInfo CreateSubdirectory(string path)
 {
     return(new DirectoryInfo(internalDirectoryInfo.CreateSubdirectory(path).FullName));
 }
Example #25
0
        private void btnAddAlbom_Click(object sender, EventArgs e)
        {
            string Dest_path = DestPath;

            if (NameAlbomTextBox.TextLength < 1 || YearIssueTextBox.TextLength < 1 || CountTrackTextBox.TextLength < 1 || pathAlbomPicture == null)
            {
                MessageBox.Show("Проверьте вводимые данные!\nВозможно какое-то поле осталось незаполненным", "Ошибка!!!");
                return;
            }
            if (Convert.ToInt32(CountTrackTextBox.Text) > 50)
            {
                MessageBox.Show("Слишком большое количество треков!\nПожалуйста, проверьте данные", "Превышено допустимое количество треков");
                return;
            }
            if (Convert.ToInt32(YearIssueTextBox.Text) > 2020 || Convert.ToInt32(YearIssueTextBox.Text) < 1900)
            {
                MessageBox.Show("Не добавляйте альбом из будущего!\nПожалуйста, проверьте данные", "Ошибка! Неккоректный год");
                return;
            }

            MyQuery = $"use [Music_po] EXECUTE [AddAlbom] " +
                      $"@Name_albom ," +
                      $"@Name_author ," +
                      $" @Count_track ," +
                      $" @Year_issue ," +
                      $" @image";
            using (SqlConnection conn = new SqlConnection(MyConn))
            {
                using (SqlCommand command = new SqlCommand(MyQuery, conn))
                {
                    command.Parameters.AddWithValue("@Name_albom", NameAlbomTextBox.Text);
                    command.Parameters.AddWithValue("@Name_author", NameAuthorTextBox.Text);
                    command.Parameters.AddWithValue("@Count_track", CountTrackTextBox.Text);
                    command.Parameters.AddWithValue("@Year_issue", YearIssueTextBox.Text);
                    command.Parameters.AddWithValue("@image", imageData);

                    try
                    {
                        conn.Open();
                    }
                    catch (System.Data.SqlClient.SqlException)
                    {
                        MessageBox.Show("Проблемы с соединением с сервером БД\nПроверьте подключение", "Авторизация");
                        return;
                    }
                    try
                    {
                        command.ExecuteNonQuery();
                    }
                    catch (System.Data.SqlClient.SqlException errr)
                    {
                        MessageBox.Show(errr.Message);
                        return;
                    }

                    System.IO.DirectoryInfo dirInfo = new System.IO.DirectoryInfo(Dest_path + AuthorComboBox.SelectedItem + @"\");
                    if (!dirInfo.Exists)
                    {
                        dirInfo.Create();
                    }

                    dirInfo.CreateSubdirectory(NameAlbomTextBox.Text);

                    MessageBox.Show("Альбом успешно добавлен", "Успех!");
                    BodyPO.PaintPictureBox();
                    conn.Close();
                    btnCancelAddAlbom_Click(sender, e);
                }
            }
        }
        /// <summary>
        /// Process the request
        /// </summary>
        public override void ExecuteCmdlet()
        {
            base.ExecuteCmdlet();


            LogVerbose("Now migrating attachments from list to library {0}.", this.DestinationLibraryName);

            var result    = System.IO.Path.GetTempPath();
            var resultdir = new System.IO.DirectoryInfo(result);

            _resultLogDirectory = resultdir.CreateSubdirectory("downloadedAttachments", resultdir.GetAccessControl());


            List   _srclist    = this.ClientContext.Web.Lists.GetByTitle(SourceListName);
            Folder _rootFolder = _srclist.RootFolder;

            this.ClientContext.Load(_srclist);
            this.ClientContext.Load(_rootFolder);
            this.ClientContext.ExecuteQuery();

            List   _dlist       = this.ClientContext.Web.Lists.GetByTitle(DestinationLibraryName);
            Folder _drootFolder = _dlist.RootFolder;

            this.ClientContext.Load(_dlist);
            this.ClientContext.Load(_drootFolder);
            this.ClientContext.ExecuteQuery();

            LogVerbose("Source List {0} with root folder {1}", _srclist.Title, _rootFolder.ServerRelativeUrl);
            LogVerbose("Destination List {0} with root folder {1}", _dlist.Title, _drootFolder.ServerRelativeUrl);

            //check if list is discussion list
            bool _isDiscussionList = false;
            ContentTypeCollection contentTypeColl = _srclist.ContentTypes;

            this.ClientContext.Load(contentTypeColl);
            this.ClientContext.ExecuteQuery();

            LogVerbose("Checking Content types:");
            foreach (ContentType contentType in contentTypeColl)
            {
                if (contentType.Name.IndexOf("Discussion") > -1)
                {
                    LogVerbose("Name: {0}  Id: {1}", contentType.Name, contentType.Id);
                    _isDiscussionList = true;
                    break;
                }
            }

            if (!(String.IsNullOrEmpty(StartingFolder)))
            {
                //Create StartingFolder
                _dlist.RootFolder.Folders.Add(StartingFolder);
                _dlist.Update();
                this.ClientContext.ExecuteQuery();
            }

            if (SiteAction.Equals("copy-files", StringComparison.CurrentCultureIgnoreCase))
            {
                //Process items for attachement
                GetItemsWithinFolder(_srclist, _dlist, _srclist.RootFolder);
            }


            if (!_isDiscussionList)
            {
                FolderCollection _folders = _rootFolder.Folders;
                this.ClientContext.Load(_folders);
                this.ClientContext.ExecuteQuery();

                foreach (Folder _folder in _folders)
                {
                    LogVerbose(">>>> {0}", _folder.Name);
                    if ((_folder.Name != "Attachments") && (_folder.Name != "Item"))
                    {
                        LogVerbose(">>>>" + _folder.Name);
                        ProcessFolder(_folder, _srclist, _dlist);
                    }
                }
            }
        }
Example #27
0
 public IDirectoryInfo CreateSubdirectory(string path)
 {
     return(Wrap(inner.CreateSubdirectory(path)));
 }
Example #28
0
 public override DirectoryInfo CreateSubdirectory(string path)
 {
     return(new FileSystemDirectoryInfo(PathRoot, Info.CreateSubdirectory(path)));
 }
Example #29
0
        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 + "\\resources18file.txt");
            fileInfo.Create().Close();
            System.IO.StreamWriter outFile = fileInfo.AppendText();
            System.Console.WriteLine(tempPath + "\\resources18file.txt");


            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) {
            }

            outFile.Flush();
            outFile.Close();

            try {
                sL = System.IO.Directory.GetDirectories(tempPath, "TempDir*");
                foreach (string str in sL)
                {
                    try {
                        System.IO.Directory.Delete(str);
                    } catch (Exception) {
                    }
                }
            } catch (Exception) {
            }
        } // Main
        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);
              }
        }
Example #31
0
        public void Print(IList<FilmBox> filmBoxList)
        {
            try
            {
                Status = PrintJobStatus.Pending;

                OnStatusUpdate("Preparing films for printing");

                var printJobDir = new System.IO.DirectoryInfo(FullPrintJobFolder);
                if (!printJobDir.Exists)
                {
                    printJobDir.Create();
                }

                DicomFile file;
                int filmsCount = FilmBoxFolderList.Count;
                for (int i = 0; i < filmBoxList.Count; i++)
                {
                    var filmBox = filmBoxList[i];
                    var filmBoxDir = printJobDir.CreateSubdirectory(string.Format("F{0:000000}", i + 1 + filmsCount));

                    file = new DicomFile(filmBox.FilmSession);
                    file.Save(string.Format(@"{0}\FilmSession.dcm", filmBoxDir.FullName));

                    FilmBoxFolderList.Add(filmBoxDir.Name);
                    filmBox.Save(filmBoxDir.FullName);
                }

                FilmSessionLabel = filmBoxList.First().FilmSession.FilmSessionLabel;

                var thread = new Thread(new ThreadStart(DoPrint));
                thread.Name = string.Format("PrintJob {0}", SOPInstanceUID.UID);
                thread.IsBackground = true;
                thread.Start();
            }
            catch (Exception ex)
            {
                Error = ex;
                Status = PrintJobStatus.Failure;
                OnStatusUpdate("Print failed");
                DeletePrintFolder();
            }
        }
        /*Custom*/
        private void ClientFoldersInit(string userFolder, int siteId)
        {
            string CurrentPath = System.IO.Path.Combine(System.Web.HttpContext.Current.Server.MapPath(userFolder), siteId.ToString());
            System.IO.DirectoryInfo EditDirectory = new System.IO.DirectoryInfo(CurrentPath);

            // Check if a folder exists and create if it does not
            if (!EditDirectory.Exists)
            {
                EditDirectory.Create();
                EditDirectory.CreateSubdirectory("file");
                EditDirectory.CreateSubdirectory("image");
                EditDirectory.CreateSubdirectory("flash");
                EditDirectory.CreateSubdirectory("media");
                EditDirectory.CreateSubdirectory("downloads");
            }
        }
Example #33
-1
        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) {
            }
        }