Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 



Writes a string to a file.



STR (required)
String to write to a file

FILE (required)
Name of the file to write.


The WRITEFILE tag 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 errno include:

File was not written.


The following example writes the value of Variables.junk to the Windows NT file, foo.bar, in the temp directory.

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:

The example code to write the value of Variables.junk to the folder foo.bar is:

See Also


  Home > Contents > Index >

Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.