Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

Utilities.writeFile

Writes a file to disk, given a path and the contents of the file.

The contents are in a byte array. The path is internally converted by osSafeSpec(). This method has two variants:


Utilities.writeFile

Writes a file to disk, given a pathname and the contents of the file.

Syntax

Parameters

fname
The pathname of the target file.

str
The data to write to the file.

Returns

Returns true on success, false on failure.

Description

Writes a file to disk, given a path and the contents of the file. The path is internally converted by osSafeSpec().

See Also

osSafeSpec()


Utilities.writeFile

Writes a file to disk, given a pathname, the contents of the file, and the number of bytes to write.

Syntax

Parameters

fname
The pathname of the target file.

bytes
The byte array to write to the file.

len
The number of bytes to write to the file.

Description

The writeFile method writes a file to disk, given a path and the contents of the file. The contents are in a byte array. The writeFile method writes up to len bytes of the input byte array. The path is internally converted by osSafeSpec .

Returns

Returns true on success, false on failure.

See Also

osSafeSpec

 

  Home > Contents > Index >

FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.