文件名称:CSharptTextFile
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 58kb
- 下载次数:
- 0次
- 提 供 者:
- 宗**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
C3对txt文本文档的操作
方法一 文件的底层操作,比如写入或读出byte数据数据时用
1、建立文件流对象,System.IO.FileStream filestm;
2、来打开文档,filestm = System.IO.File.Open(Filename, System.IO.FileMode.Append )
3、文档操作, filestr.WriteByte(...),Write(...),Read(...),ReadByte(...)
4、文档注销,filestr.close()
方法二 特定编码的文档操作System.IO.StreamWriter 进行操作
-C3 txt text documents on the operation method of a low-level file operations, such as data write or read data byte with 1, the establishment of the file stream object, System.IO.FileStream filestm 2, to open the document, filestm = System.IO . File.Open (Filename, System.IO.FileMode.Append) 3, document operations, filestr.WriteByte (...), Write (...), Read (...), ReadByte (...) 4, document cancellation, filestr.close () method of coding documents specific operation of the second operation System.IO.StreamWriter
方法一 文件的底层操作,比如写入或读出byte数据数据时用
1、建立文件流对象,System.IO.FileStream filestm;
2、来打开文档,filestm = System.IO.File.Open(Filename, System.IO.FileMode.Append )
3、文档操作, filestr.WriteByte(...),Write(...),Read(...),ReadByte(...)
4、文档注销,filestr.close()
方法二 特定编码的文档操作System.IO.StreamWriter 进行操作
-C3 txt text documents on the operation method of a low-level file operations, such as data write or read data byte with 1, the establishment of the file stream object, System.IO.FileStream filestm 2, to open the document, filestm = System.IO . File.Open (Filename, System.IO.FileMode.Append) 3, document operations, filestr.WriteByte (...), Write (...), Read (...), ReadByte (...) 4, document cancellation, filestr.close () method of coding documents specific operation of the second operation System.IO.StreamWriter
(系统自动生成,下载前可以参看下载内容)
下载文件列表
WindowsApplication1\Backup\WindowsApplication1\Form1.cs
...................\......\...................\Form1.Designer.cs
...................\......\...................\Form1.resx
...................\......\...................\Program.cs
...................\......\...................\...perties\AssemblyInfo.cs
...................\......\...................\..........\Resources.Designer.cs
...................\......\...................\..........\Resources.resx
...................\......\...................\..........\Settings.Designer.cs
...................\......\...................\..........\Settings.settings
...................\......\...................\WindowsApplication1.csproj
...................\......\WindowsApplication1.sln
...................\......\WindowsApplication1.suo
...................\UpgradeLog.XML
...................\WindowsApplication1\bin\Debug\2714A.txt
...................\...................\...\.....\2714B.txt
...................\...................\...\.....\2750A.txt
...................\...................\...\.....\2750B.txt
...................\...................\...\.....\Matlab_Gnerated.txt
...................\...................\...\.....\WindowsApplication1.exe
...................\...................\...\.....\WindowsApplication1.pdb
...................\...................\...\.....\WindowsApplication1.vshost.exe
...................\...................\...\.....\WindowsApplication1.vshost.exe.manifest
...................\...................\Form1.cs
...................\...................\Form1.Designer.cs
...................\...................\Form1.resx
...................\...................\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
...................\...................\...\.....\WindowsApplication1.csproj.FileListAbsolute.txt
...................\...................\...\.....\WindowsApplication1.csproj.GenerateResource.Cache
...................\...................\...\.....\WindowsApplication1.exe
...................\...................\...\.....\WindowsApplication1.Form1.resources
...................\...................\...\.....\WindowsApplication1.pdb
...................\...................\...\.....\WindowsApplication1.Properties.Resources.resources
...................\...................\...\WindowsApplication1.csproj.FileListAbsolute.txt
...................\...................\Program.cs
...................\...................\...perties\AssemblyInfo.cs
...................\...................\..........\Resources.Designer.cs
...................\...................\..........\Resources.resx
...................\...................\..........\Settings.Designer.cs
...................\...................\..........\Settings.settings
...................\...................\WindowsApplication1.csproj
...................\WindowsApplication1.sln
...................\WindowsApplication1.suo
...................\_UpgradeReport_Files\UpgradeReport.css
...................\....................\UpgradeReport.xslt
...................\....................\UpgradeReport_Minus.gif
...................\....................\UpgradeReport_Plus.gif
...................\WindowsApplication1\obj\Debug\TempPE
...................\Backup\WindowsApplication1\Properties
...................\WindowsApplication1\bin\Debug
...................\...................\obj\Debug
...................\Backup\WindowsApplication1
...................\WindowsApplication1\bin
...................\...................\obj
...................\...................\Properties
...................\Backup
...................\WindowsApplication1
...................\_UpgradeReport_Files
WindowsApplication1
...................\......\...................\Form1.Designer.cs
...................\......\...................\Form1.resx
...................\......\...................\Program.cs
...................\......\...................\...perties\AssemblyInfo.cs
...................\......\...................\..........\Resources.Designer.cs
...................\......\...................\..........\Resources.resx
...................\......\...................\..........\Settings.Designer.cs
...................\......\...................\..........\Settings.settings
...................\......\...................\WindowsApplication1.csproj
...................\......\WindowsApplication1.sln
...................\......\WindowsApplication1.suo
...................\UpgradeLog.XML
...................\WindowsApplication1\bin\Debug\2714A.txt
...................\...................\...\.....\2714B.txt
...................\...................\...\.....\2750A.txt
...................\...................\...\.....\2750B.txt
...................\...................\...\.....\Matlab_Gnerated.txt
...................\...................\...\.....\WindowsApplication1.exe
...................\...................\...\.....\WindowsApplication1.pdb
...................\...................\...\.....\WindowsApplication1.vshost.exe
...................\...................\...\.....\WindowsApplication1.vshost.exe.manifest
...................\...................\Form1.cs
...................\...................\Form1.Designer.cs
...................\...................\Form1.resx
...................\...................\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
...................\...................\...\.....\WindowsApplication1.csproj.FileListAbsolute.txt
...................\...................\...\.....\WindowsApplication1.csproj.GenerateResource.Cache
...................\...................\...\.....\WindowsApplication1.exe
...................\...................\...\.....\WindowsApplication1.Form1.resources
...................\...................\...\.....\WindowsApplication1.pdb
...................\...................\...\.....\WindowsApplication1.Properties.Resources.resources
...................\...................\...\WindowsApplication1.csproj.FileListAbsolute.txt
...................\...................\Program.cs
...................\...................\...perties\AssemblyInfo.cs
...................\...................\..........\Resources.Designer.cs
...................\...................\..........\Resources.resx
...................\...................\..........\Settings.Designer.cs
...................\...................\..........\Settings.settings
...................\...................\WindowsApplication1.csproj
...................\WindowsApplication1.sln
...................\WindowsApplication1.suo
...................\_UpgradeReport_Files\UpgradeReport.css
...................\....................\UpgradeReport.xslt
...................\....................\UpgradeReport_Minus.gif
...................\....................\UpgradeReport_Plus.gif
...................\WindowsApplication1\obj\Debug\TempPE
...................\Backup\WindowsApplication1\Properties
...................\WindowsApplication1\bin\Debug
...................\...................\obj\Debug
...................\Backup\WindowsApplication1
...................\WindowsApplication1\bin
...................\...................\obj
...................\...................\Properties
...................\Backup
...................\WindowsApplication1
...................\_UpgradeReport_Files
WindowsApplication1