Walter.BOM
TryWriteFile Method
Walter.BOM Assembly > Walter.BOM Namespace > IControlledDiskIO Interface : TryWriteFile Method
file that will be allowed to be created or replaced
The text that is to be stored.
exception if failed
Tries to writes the file to disk, will create the directory if needed and will replace any data in file exists
Syntax
bool TryWriteFile( 
   FileInfo file,
   string text,
   out Exception? e
)

Parameters

file
file that will be allowed to be created or replaced
text
The text that is to be stored.
e
exception if failed

Return Value

False if a exception was thrown
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

IControlledDiskIO Interface
IControlledDiskIO Members