Home > Contents > Index >
WRITEFILE
Writes a string to a file.
Syntax
<WRITEFILE STR="STRING_VALUE" FILE="FILE_NAME"/>Parameters
STR (required)- String to write to a file
FILE (required)- Name of the file to write.
Description
The
WRITEFILEtag writes a string to a file. The file path you specify must be legal; subfolders are created as needed. The syntax must be specific to your operating system.Error Numbers
The possible values of
errnoinclude:
Value Description -301 File was not written.Example
The following example writes the value of
Variables.junkto the Windows NT file,foo.bar,in thetempdirectory.You should create a property in the Sites properties file that contains system-dependent file path syntax and append the file name to the property to construct the full path.
For example, you if you specify the folder location property as:
app.OutputFolder=c:tempThe example code to write the value of
Variables.junkto the folderfoo.baris:<SETVAR NAME="folder" VALUE="CS.Property.app.OutputFolder"/> <WRITEFILE STR="Variables.junk" FILE="Variables.folderfoo.bar" />See Also
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.