System.IO.File class provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects. The CreateText method creates or opens a file for writing UTF-8 encoded text. The following example demonstrates some of the main members of the File class. Dim pathStr Dim sysIoFile, sw pathStr …
Category Archive: Text Files
Mar 31 2008
Write to a Text File
System.IO.File class provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects. The System.IO.StreamWriter class implements a TextWriter for writing characters to a stream in a particular encoding. The following code examples show how to write text to a text file. The first example …



Recent Comments