My Oracle Support Banner

Is there any IScript Function To Delete The File Contents? (Doc ID 810403.1)

Last updated on APRIL 03, 2018

Applies to:

Oracle Communications Billing and Revenue Management - Version: and later   [Release: 7.3.1 and later ]
Information in this document applies to any platform.


Trying to use fileFlush() function to delete the contents of the file.

Consider the below iScript to delete the file contents:

File reference;
if( fileOpen( reference, FILE_REFERENCE, "a+") == false )
logFormat( "ERROR: reference fileOpen() failed to log date" );
}else {
if ( fileFlush(reference) == false )
logStdout( "ERROR: fileFlush() failed" );
} else {
logStdout( "DEBUG: fileFlush() success" );

temp = fileWriteStr(reference,"write_str");


The above code displays message as "DEBUG: fileFlush() success" , but still the file contains the
old contents.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.