Write a string into a file either creating the file or replacing its current contents
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim pFileName As String
Dim pContents As String
Dim pEncoding As Encoding
FileFns.WriteTextFile(pFileName, pContents, 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also