Hexapp Documentation
Hexapp Documentation
Hexapp API
Reference
MicaSystems.Utils
Utils_File Class
Utils_File Methods
CheckAssembliesVersions Method
CheckDirectoryPathValidity Method
CheckInvalidCharacters Method
Copy Method
CopyDirectory Method
CopyDirectoryContent Method
CopyFileFromStream Method
CopyStream Method
CopyStreamFromFile Method
CopyTo Method
FilesAreEqual Method
FilesAreEqual_Hash Method
GetAssembliesVersions Method
GetByteArrayFromStream Method
GetBytes Method
GetDestinationPath Method
GetExtension Method
GetFileContent Method
GetMemoryStream Method
GetOfficeExtensions Method
GetWord2010Extensions Method
GiveFullControlTo Method
IsImageFile Method
IsOfficeFile Method
IsWord2010File Method
ReplaceFileNameInvalidCharacters Method
SaveToFile Method
ToFile Method
ValidateFileName Method
Utils_File
ToFile Method
Changes the content of a file to this text. Currently the same as System.IO.File.WriteAllText. Uses UTF8 encoding.
Namespace:
MicaSystems.Utils
Assembly:
MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
Copy
public
static
void
ToFile
(
this
string
text
,
string
path
)
Parameters
text
Type:
System
String
path
Type:
System
String
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
Utils_File Class
MicaSystems.Utils Namespace
www.hexapp.com
×
Close feedback form
Send us
comments or requests about documentation