DevForce Help Reference
WriteTextFile(String,String,Encoding) Method


The file to write to
A string to write to the file
The Encoding to use
Write a string into a file either creating the file or replacing its current contents
Syntax
'Declaration
 
Public Overloads Shared Sub WriteTextFile( _
   ByVal pFileName As String, _
   ByVal pContents As String, _
   ByVal pEncoding As Encoding _
) 
'Usage
 
Dim pFileName As String
Dim pContents As String
Dim pEncoding As Encoding
 
FileFns.WriteTextFile(pFileName, pContents, pEncoding)
public static void WriteTextFile( 
   string pFileName,
   string pContents,
   Encoding pEncoding
)

Parameters

pFileName
The file to write to
pContents
A string to write to the file
pEncoding
The Encoding to use
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FileFns Class
FileFns Members
Overload List

Send Feedback