• 大小: 0.07M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: txt  大文件  示例  文件  C#  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace ReadBigTxtDemo
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnRead_Click(object sender EventArgs e)
        {

            if (ReadBigFile())
            {
                lblResult.Text = “Completed!“;
            }
  
        }

        private bool ReadBigFile()
        {
            string sTmpFile=@“c:\tmpTest.txt“;
            if (File.Exists(sTmpFile))
            {
                File.Delete(sTmpFile);
            }

            if (!S

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      10752  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\bin\Debug\ReadBigTxtDemo.exe

     文件      26112  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\bin\Debug\ReadBigTxtDemo.pdb

     文件      11600  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\bin\Debug\ReadBigTxtDemo.vshost.exe

     文件        490  2010-03-17 22:39  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\bin\Debug\ReadBigTxtDemo.vshost.exe.manifest

     文件      10752  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\bin\ReadBigTxtDemo\ReadBigTxtDemo.exe

     文件      26112  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\bin\ReadBigTxtDemo\ReadBigTxtDemo.pdb

     文件      11600  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\bin\ReadBigTxtDemo\ReadBigTxtDemo.vshost.exe

     文件        490  2010-03-17 22:39  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\bin\ReadBigTxtDemo\ReadBigTxtDemo.vshost.exe.manifest

     文件      15720  2013-11-29 11:21  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\bin\ReadBigTxtDemo.rar

     文件       3074  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\Form1.cs

     文件       5029  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\Form1.Designer.cs

     文件       5817  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\Form1.resx

     文件       2164  2013-11-29 10:52  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6383  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        360  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        846  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\obj\x86\Debug\GenerateResource.write.1.tlog

     文件        991  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\obj\x86\Debug\ReadBigTxtDemo.csproj.FileListAbsolute.txt

     文件      10752  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\obj\x86\Debug\ReadBigTxtDemo.exe

     文件        180  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\obj\x86\Debug\ReadBigTxtDemo.Form1.resources

     文件      26112  2013-11-29 11:20  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\obj\x86\Debug\ReadBigTxtDemo.pdb

     文件        180  2013-11-29 10:54  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\obj\x86\Debug\ReadBigTxtDemo.Properties.Resources.resources

     文件        506  2013-11-29 10:52  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\Program.cs

     文件       1440  2013-11-29 10:52  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\Properties\AssemblyInfo.cs

     文件       2857  2013-11-29 10:52  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\Properties\Resources.Designer.cs

     文件       5612  2013-11-29 10:52  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\Properties\Resources.resx

     文件       1100  2013-11-29 10:52  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\Properties\Settings.Designer.cs

     文件        249  2013-11-29 10:52  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\Properties\Settings.settings

     文件       3687  2013-11-29 10:54  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo.csproj

     文件        884  2013-11-29 10:52  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo.sln

    ..A..H.     10240  2013-11-29 11:15  ReadBigTxtDemo\ReadBigTxtDemo\ReadBigTxtDemo.suo

............此处省略14个文件信息

评论

共有 条评论